Monthly Archives: March 2011

Using No-IP_DUC!

Using No-IP_DUC!
One of the most powerful and coolest tools over the internet, is the No-IP_DUC tool, simply it is a program that runs either as a start up program or as a windows service (if more than one account is available on the computer), that takes your public IP address and assigns a host name to it, so it’s a solution when static IP address is not an option to take.
All what you need to do is to go to http://www.no-ip.org and create a new account and then download your “Dynamic DNS update client”, after that you assign a new host name, for example, “test.no-ip.org”, so this will become your static IP address but in terms of names rather than numbers.
Actually, I am now using Windows 7 besides BackTrack 4 R2, after installing the dynamic DNS update client on Windows 7 you will be asked for the “email” and the “password” of your No-IP.org account, just type them in and a new window will pop up to let you choose the host name you want to use (you can add more than one from the website),  after that, the briefing window appears to tell you your current public IP address and stuff.
But what makes this tool effective, is its ability to work as a Windows service, which means that whoever logs onto that computer (locally) will fire up the DNS update client and will assigns the public IP address to the host name.
Why should I use it!
You would ask: “Do I really need this tool?” well then it depends! It totally depends on you, are there any services running on your computer that you want to access remotely! If yes then this is the right tool for you.
Examples!
I can give you some of my current services being ran on my personal machine, the first and the most important one, is accessing my Belkin router remotely, this of course depends on your router and its ability to be managed remotely, for example, mine is running on port 12345, so I can access it everywhere by simply navigating to this address: http://test.no-ip.org:12345 then I will be prompted to enter my router’s master password to access it.
Another example, is the remote desktop connection, which runs on port 3389, but this is somehow harder to achieve, since you need “Port Forwarding”, actually it’s not a hard task, but to not technical users, they will just decline to try, use this reference to see how to “port-forwarding” connection to a given computer in a LAN.
Finally, my last example, is the BitTorrent WebUI interface, which lets you add, remove, queue torrents remotely, which it needs to be assigned a port number to be accessed remotely, so in my case, let’s say that I am using port 19191, so if I want to connect to my home’s BitTorrent client, all I need to do is, to type: http://test.no-ip.org:19191/gui.
Well, that’s it, have a lovely time J

Connecting to WPA-TKIP Network From Terminal | Linux

Hello guys!
I am a BackTrack user and currently it’s version 4 R2 (grab yours from here), so every time I try to launch the GUI Network Manager it fails. So here’s how to connect to your WPA/WPA2 TKIP secured WLAN.

  • First of all, you need a tool called “wpasupplicant”
  • Create a new file and place it in /etc
  • name it wpa_supplicant.conf

In the terminal or Kwrite edit the wpa_supplicant.conf configuration file. I will use the “nano” command in the terminal

sudo nano /etc/wpa_supplicant.conf

Add the following and change it accordingly

ap_scan=1
ctrl_interface=/var/run/wpa_supplicant
network={
ssid=”Your Network SSID Ex. Speedtouch in Quotes”
scan_ssid=0
proto=WPA
key_mgmt=WPA-PSK
psk=”Your ASCII PSK Password in Quotes”
pairwise=TKIP
group=TKIP
}

Then type the following code!

ifconfig [interface] down
dhclient -r [interface]
wpasupplicant -i [interface] -c /etc/wpa_supplicant.conf -dd

Then fire up another terminal and let the current one running.

ifconfig [interface] up
iwconfig [interface] mode Managed
dhclient [interface]

After that you will get your connection.
By the way [interface] must be replaced by your interface’s id, example, wlan0
Happy “Linuxing”


HDD Enclosures!

I want to share this new experiment I’ve been through with you, I’ve just bought a new PC and I got rid of the old one, however I still have 60GB of data which have to be copied, so as the new PC supports SATA where the old supports IDE, what a dilemma?
I’ve heard about HDD enclosures, which are great things indeed, so I bought one and plugged my 80GB internal HDD into it and here it is an 80GB external HDD. However, the only drawback in that is just the power issue; it must be plugged to an electricity outlet in order to work.
But before that I had an idea to dual boot Windows and Ubuntu; so before buying it I asked the seller, “does it support USB booting”, and shockingly he answered: “No!” so I got disappointed for a minute or so but I did buy it because I have really great amount of data which must be transferred to the new box and to make sure that the salesperson was telling the truth.
After , I said let’s try installing a new Operating System OS to this HDD just to see if the seller knows what he was talking about, and I did, I’ve chosen my best penetration testing environment to be installed, which is “BackTrack” it is the IV edition.
I’ve plugged the external HDD and powered it on and booted the CD, and installed the BT4 on it, and it worked great, so I rebooted the machine, and I got a list of OS’s installed on the computer so I can select any to fire it up.
I was really happy with that. So I turned my gear off, and hanged out with my friends, then I came back, and launched my computer but forgot to turn on the External HDD, so I got a “Boot Error 21”!
What the hell!!! Yup; the MBR (Main Record Boot) sector is now installed on the 80GB External HDD, so I can NOT run it unless the External HDD is ON (it can be fixed by using Linux command line tools).
I was frustrated because I did that mistake and now I have to format the 80 GB HDD to get only Windows 7 ( the default OS) which is installed on the internal hard-drive so that “anyone at the house boots it without asking me :p”. After formatting the external HDD I realized that I’ve just did the biggest mistake ever: I’ve just removed the MBR!!!

I can’t boot up my Windows 7!

So, what to do know? Well, after a while I remembered my friend “casper devil”, he is an active Linux user @ http://www.LinuxForums.org, he told me once about a tool which is called “Super Grub Boot Tool”; it’s simply a tool to fix Windows or Linux MBR, and yup the issue was completely solved and here I am writing this.