Thursday, April 15, 2010

Disconnect the client’s network connection remotely

Use psexec remote run bat to a target machine by using share driver

 

The bat file at the following:

**********************************************************

route -f

route add 0.0.0.0 mask 0.0.0.0 172.17.50.30 (Fake Gateway IP Address) metric 1 -p

Copy C:\WINDOWS\system32\drivers\etc\hosts C:\WINDOWS\system32\drivers\etc\hosts_bk /y

echo 127.0.0.1 (Fake IP of the File Server, AD …..) ServerX >> c:\Windows\system32\drivers\etc\hosts

echo 127.0.0.1 (Fake IP of the File Server, AD …..) ServerX.abc.com >> c:\Windows\system32\drivers\etc\hosts

********************************************************

 

psexec.exe \\target_hostname -u (localadmin) -p (localadmin's password) \\server\share$\

Print Friendly and PDF
Share/Bookmark

No comments:

Post a Comment