kev123 132 Posted February 9, 2013 Report Share Posted February 9, 2013 I thought I would start this thread for people to share advanced shell commands. i'm no expert so i'll start with a question lol is it possible to control internet connections eg drop wifi and reconnect or drop Ethernet port through shell commands (I know this is possible through ubots windows commands) 1 Quote Link to post Share on other sites
krazylary 2 Posted February 11, 2013 Report Share Posted February 11, 2013 run as admin C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe wmic path win32_networkadapter where PhysicalAdapter=True call disable wmic path win32_networkadapter where PhysicalAdapter=True call enable these are also good at deleting personals ipconfig /flushdns net session /delete Start-Process 'C:\Program Files\CCleaner\CCleaner64.exe' '/auto' Quote Link to post Share on other sites
kev123 132 Posted February 11, 2013 Author Report Share Posted February 11, 2013 nice one that's pretty good Quote Link to post Share on other sites
AutomationNinja 194 Posted February 14, 2013 Report Share Posted February 14, 2013 Can I change my ip using shell commands? Quote Link to post Share on other sites
UBotBuddy 331 Posted February 14, 2013 Report Share Posted February 14, 2013 It's not reliable but you could write a bot to talk to your DSL modem and reboot that to get a new IP. Buddy Quote Link to post Share on other sites
krazylary 2 Posted February 16, 2013 Report Share Posted February 16, 2013 Can I change my ip using shell commands? yes you can. goto cmd and type netsh /? or netsh -help Quote Link to post Share on other sites
AutomationNinja 194 Posted February 18, 2013 Report Share Posted February 18, 2013 Interesting. Does that change my IP for everything I do such as browser and when I the "connect to mail server" command? Quote Link to post Share on other sites
krazylary 2 Posted February 19, 2013 Report Share Posted February 19, 2013 I think I am going to start a powershell thread of some fun things you can do IF this does not work you have to download power shell 3.0. You need to go to powershell ISE $krazylary = New-Object System.Net.WebClient$krazylary.Headers.Add("User-Agent","Mozilla/4.0+") $krazylary.Proxy = [system.Net.WebRequest]::DefaultWebProxy$krazylary.Proxy.Credentials = [system.Net.CredentialCache]::DefaultNetworkCredentials$krazylary.DownloadString("http://youtube.com") So with a little help from ubot you could create a list of ip's that PS calls and changes the ip.. This is a very simple example. Quote Link to post Share on other sites
AutomationNinja 194 Posted February 19, 2013 Report Share Posted February 19, 2013 hmmm... I need to get a basic understanding of all this stuff. I have been reading about socks and SSH and terminal emulators and stuff and I feel totally lost. Where is the beginners guide to all this stuff? I don't even know where to start. Quote Link to post Share on other sites
fastw3 0 Posted February 24, 2013 Report Share Posted February 24, 2013 (edited) @ AutomationNinja For ssh connection you need plink.exe http://www.chiark.greenend.org.uk/~sgtatham/putty/download.htmlHere is an example of SSH dynamic port forwarding with SOCKSclose.exe = close cmd window http://www.fileconvoy.com/dfl.php?id=gd5e29d8258e7bd4099923022394575b2077514133create table from file("Z:\\u\\acc\\data\\ssh.txt", &ssh)create table from file("Z:\\u\\acc\\data\\socks.txt", &socks)set(#increment, 0, "Global")loop($table total rows(&ssh)) {set(#ssh_user, $table cell(&ssh, #increment, 0), "Global")set(#ssh_passw, $table cell(&ssh, #increment, 1), "Global")set(#ssh_ip, $table cell(&ssh, #increment, 2), "Global")set(#socks_ip, $table cell(&socks, #increment, 0), "Global")set(#socks_port, $table cell(&socks, #increment, 1), "Global")save to file("Z:\\u\\acc\\ssh\\{#ssh_ip}_.bat", "start /MIN Z:\\u\\acc\\ssh\\{#ssh_ip}.bat")save to file("Z:\\u\\acc\\ssh\\{#ssh_ip}.bat", "@ echo off{$new line}title {#ssh_ip}{$new line}@echo n |Z:\\u\\acc\\data\\plink -v {#ssh_ip} -P 22 -l {#ssh_user} -C -2 -N -pw {#ssh_passw} -D {#socks_ip}:{#socks_port}{$new line}")shell("Z:\\u\\acc\\ssh\\{#ssh_ip}_.bat")wait(10)change proxy("socks4://{#socks_ip}:{#socks_port}")navigate("http://whoer.net/", "Wait")wait for browser event("Everything Loaded", "")set(#ip_whoer, $scrape attribute(, "innertext"), "Global")shell("Z:\\u\\acc\\data\\close.exe {#ssh_ip}")increment(#increment)save to file("Z:\\u\\acc\\accounts.txt", "{#ssh_user}:{#ssh_passw}:{#ssh_ip}:{#socks_ip}:{#socks_port}:{#ip_whoer}")} Edited February 24, 2013 by fastw3 Quote Link to post Share on other sites
fastw3 0 Posted February 24, 2013 Report Share Posted February 24, 2013 ssh file format : admin;admin;76.172.213.130socks file format 127.0.0.1;1850127.0.0.1;1851127.0.0.1;1852127.0.0.1;1853127.0.0.1;1854127.0.0.1;1855 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.