How to Reveal Hidden Passwords in Web Browsers

In many places where you need to input your password to gain access, authorise or confirm a transaction, whenever you type passwords into the input box, the characters automatically change into asterisks or bullets. This is to protect your password from straying eyes.

There is a simple trick to find out what is behind the bullet points or asterisks in web browsers.

The hidden fields are disguised using simple HTML or CSS so just changing the values on the fly will reveal what is behind the bullets or asterisks.

Google Chrome

In this example I am using Linkedin as a login area.

Right click on the password box and click on “Inspect element”

Linkedin Login Inspect Element

At the bottom of your screen it will be sectioned off with a whole lot of code, you will only need to focus on the code highlighted in blue.

Linkedin Element PasswordLinkedin Element PasswordLinkedin Element Password

Change type=password to type=text

Once you change that the password is revealed.

Should you have any questions, comments or suggestions, please don’t hesitate to comment below. If you like what you have read, please share it on your favourite social media medium.

Change WordPress Existing Images Path Using mySQL Database Strings

wordpress

I rebuilt my WordPress blog and had to change the image path, instead of changing it back straight away I kept using it, some images ended up in /wpcontents/uploads/* and some ended up in /wp-contents/uploads/*

So, naturally I had to change this back to /wp-contents/uploads and move all the existing files back, moving the files back wasn’t a problem but changing the image locations in the database was (without doing this completely manually and spending days on it)!

There are two ways of doing this, which will produce the same result, one is using phpMyAdmin and the other is using the command line and issuing sql commands. I will be only demonstrating the command line way as I don’t have phpMyAdmin installed, nor do I want to install it.

 

1. Shell to the server

2. Log into mySQL

3. Select database

4. Run the following

You will need to run both commands, change example.com and your path to the new ones you want to use)

Update wp_posts (post_content)

Update wp_posts (guid)

You should get a result like:

wordpress wp_posts sql update

Should you have any questions, comments or suggestions, please don’t hesitate to comment below. If you like what you have read, please share it on your favourite social media medium.

Sending Files to Linux Servers using SCP

linux-logo-300x300You might need to send files between Linux servers, a great way to send files quickly and securely is by using the SCP command.

Sending to a Host

scp = The secure file transferring program
/home/user/file.ext = The full path of the file you want to send
[email protected] = Username at host you want to send files to
:/home/user/folder = The full path of where you want to place the file

Receiving from a Host

scp = The secure file transferring program
[email protected] = Username at host you want to connect to
:/home/user/folder/file.ext = The full path of the file you want to retrieve
/home/user/folder = The full path of where you want to place the file

Should you have any questions, comments or suggestions, please don’t hesitate to comment below. If you like what you have read, please share it on your favourite social media medium.

Install Varnish on Linux Debian or Ubuntu for WordPress

varnishcache_rgb-gimp2-alpha

 

What is Varnish?

(From Wikipedia) Varnish is an HTTP accelerator designed for content-heavy dynamic web sites. In contrast to other web accelerators, such as Squid, which began life as a client-side cache, or Apache and nginx, which are primarily origin servers, Varnish was designed as an HTTP accelerator. Varnish is focused exclusively on HTTP, unlike other proxy servers that often support FTP, SMTP and other network protocols.

My Implementation

I implemented Varnish on this WordPress blog, the technical layout is as follows:

Varish Design

1. Install Varnish on Debian or Ubuntu:

2. Edit /etc/varnish/default.vcl

3. Edit /etc/default/varnish

4. Kill the service

5. Edit /etc/apache2/ports.conf and change the listening ports to 8080

6. Edit all your vhosts to match the port 8080

Example:

7. Launch Varnish

Should you have any questions, comments or suggestions, please don’t hesitate to comment below. If you like what you have read, please share it on your favourite social media medium.

Setting Locale in Linux Debian or Ubuntu

linux-logo-300x300

Setting the locale in Linux Debian or Ubuntu is quite easy, usually it is because you get the following errors:

To fix the problem, run the following command:

Select the location

Reconfigure Locales

Select the locale as default

Default Locale

 

Should you have any questions, comments or suggestions, please don’t hesitate to comment below. If you like what you have read, please share it on your favourite social media medium.