Windows 7

Change user password from the command line – Win7

If you would like to quickly change user password without having to enter the control panel: 1. Open command line with administrative rights 2. Issue the following command: net user username password examples: net user akarpouzas 12345678 do not use so simple passwords, this is just an example and, net user “Thanos Karpouzas” 12345678 if …

PHP, WEB

How to secure passwords in PHP

We are going to use sha1 algorithm(build-in php function), md5 algorithm(build-in php function) and salt to secure the password.   1 2 3 4 5 function securePassword($plaintext) { $salt = substr(md5(uniqid(rand(), true)), 0, 8); return sha1($salt . sha1($salt . $plaintext)); }function securePassword($plaintext) { $salt = substr(md5(uniqid(rand(), true)), 0, 8); return sha1($salt . sha1($salt . $plaintext)); …

Linux, NMAP, Tor

Anonymous port scanning through the tor network

To accomplish this task you have to install privoxy and proxychains on your system. For ubuntu users just issue the following command: sudo apt-get install privoxy proxychains proxychains is configured by default to work with the Tor network. Now that we have privoxy and proxychains installed we can issue the following command in the terminal: …

Linux, Network

Enable the promiscuous mode on the physical NIC

You can put your Network Interface Controller/Card into promiscuous mode by using ifconfig. A. To enable promiscuous mode issue the command (needs administrative rights): ifconfig eth0 promisc after this if you execute the command ifconfig eth0 and if everything worked as expected and your NIC supports promiscuous mode, you will notice this line: UP BROADCAST …

Microsoft Windows, Windows 7

Delete System Service in Windows 7

Before you delete any service you have to know its real name, not the displayed one. 1. Open services by executing: services.msc 2. Locate your desired service for deletion 3. Right click on it and select Properties 4. On Tab General, there is a field called Service Name. That’s the name that you will provide …

Add-ons, Browsers

Security in Firefox with NoScript

One of my favorites addons for firefox that protects me while i am surfing is NoScript! Most of you already know it. NoScript blocks JavaScript, Java and other executable content. It protects from XSS, cross-zone DNS rebinding / CSRF attacks (router hacking), and Clickjacking attempts. It allows executable content to run only from trusted domains …

Cross-Platform, Java

Get URL contents with Java

It is very easy to download url contents using a few lines of java code: The source code below is licensed under GPLv3. GetURLContents.java (GetURLContents) import java.io.*; import java.net.*;   public class GetURLContents {   public static void main (String[] args) { URL url; InputStream input = null; BufferedReader inputs; String str;   try { …

Browsers, Ubuntu

Installing Opera on Ubuntu

If you like Opera, like i do, then you are a few steps away from installing it on Ubuntu! 1. Keep a backup for file /etc/apt/sources.list 2. Append to this file the lines below: #opera deb http://deb.opera.com/opera/ stable non-free 3. Add the Opera PGP Key wget -qO – http://deb.opera.com/archive.key | sudo apt-key add – 4. …