Hacks with command prompt – (cmd tut 8)

Posted on 14/11/2009 by

11



This blog (anarchia.tk) has been shifted to http://www.anarcrypt.net.

hello once again guys. almost any video ever made on hackers or hacking, any depiction that you have ever seen of a person hacking, it would most probably be a guy sitting in front of a computer with the DOS (command prompt) open. And for good reasons. command prompt is very useful for maintaining your system and more importantly to hack into victim computers, send spoofed email and cause much more havoc.

NOTE: this tutorial and some more to come will seem like giberish IF you havent read all the previous COMMAND PROMPT TUTORIALS written by me. hacking is not about reading only those articles which are titled hacking. You need to have a lot of background information!!! if you want to really understand this, that is.

if you haven’t already, then please read the disclaimer before continuing.

First, open your Network Connection and right click and select Properties. Then Select TCP/IP and click on Properties again. Now Click on Advanced and WINS tab. Select Default for NeBIOS.   Now back to the main Local Area Connection window, select File and Print Sharing for Microsoft Networks and hit enter.   This is just to make sure you have NetBIOS enabled.   First thing you need to know is some very helpfull commands to use on CMD(Command Prompt).   In case you don’t know how to get CMD open in your box, then click on Start, then Run, then type “cmd” (no quotes, off course… you know how it goes by now).   Back to commands:
Quote:

nslookup

net view

net use

net user

ping

tracert

arp

route

nbtstat

netstat

ipconfig

In case you don’t know some of them, then just type the command on CMD and hit enter. A little help will show up in your screen. Read it and understand what the command does.

now I have explained this before but here it goes again.

1) ping : This command will allow you to know if the host you pinging is alive, which means if it is up at the time of executing the “ping” command.  

ping x.x.x.x (x is the IP address)

or

ping http://www.whatever.com/

(www.whatever.com is the website you want to ping, but you don’t know the IP)

Note: Keep in mind that if the host you pinging is blocking ICMP packets, then the result will be host offline. good firewalls do that.

2) nslookup : This command has many functionalities.  One is for resolving DNS into IP.  Lets say you know the website URL but you don’t know its IP(and you want to find out).

nslookup http://www.whatever.com

(www.whatever.com is the website you want to find out the IP)

Now, another really nice function of nslookup is to find out IP of specific Mail Severs.

nslookup (enter)

set type=mx (enter)

yahoo.com

This command will give you the mail server IP of yahoo.com. You can use whatever server you want and if it is listed on DNS, then you get the IP. Simple, isn’t it?   OK, now why would you want to have an IP of a mail server?  To send spoofed mail to your friends or even for SE.  In case you looking for “How to spoof email”, then here is another tutorial (gosh! aren’t we full of ‘em!!!!)

3) tracert : This command will give you the hops that a packet will travel to reach its final destination.

note: This command is good to know the route a packet takes before it goes to the target box.

tracert x.x.x.x (x is the IP address)

or

tracert http://www.whatever.com/

(www.whatever.com is the website you don’t know the IP)

4) arp : This command will show you the arp table. This is good to know if someone is doing arp poisoning in your LAN.

arp -a

5) route : This command will show you the routing table, gateway, interface and metric.

route print

6) ipconfig : This command will show tons of very helpful things.  Your IP, gateway, dns in use. things like that. I have written about this before as well

also, if you want to change your ip address then this is the code

ipconfig /release (enter)

ipconfig/release (enter)

this can be used to download unlimited stuff from rapidlibrary. even though I am not able to say each and every hack along the way there are ‘n’ number of things you could with the shit that i tell you. so its all on your imagination. find more ways to make these commands do what you want them to do: HACK!!

7) netstat : This command will show you connection to your box.

netstat or   netstat -a (this will show you all the listening ports and connection with DNS names)

netstat -n (this will show you all the open connection with IP addresses)

netstat -an (this will combined both of the above)

8)nbtstat : This command will show you the netbios name of the target box.

nbtstat -A x.x.x.x (x is the IP address)

nbtstat -a computername

9)net view x.x.x.x or computername (will list the available sharing folders on the target box)


Now some hacks:

net use \\computername /user:administrator (this command will allow you to connect to the target box as administrator)

Now if you want to connect to the target box and browse the entire C drive, then use

net use K: \computername

(this will create a virtual drive on your “my computer” folder)

note: Keep in mind that this will only works if the target box doesn’t have an administrator password set.

in my next post, I will get more in depth info on how to compromise another system using cmd.

enjoy till then

EZZK07