Jump to content
UBot Underground

advanced shell commands


Recommended Posts

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)

  • Like 1
Link to post
Share on other sites
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'

Link to post
Share on other sites

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.
Link to post
Share on other sites

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.

Link to post
Share on other sites

@ AutomationNinja For ssh connection you need plink.exe http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
Here is an example of SSH dynamic port forwarding with SOCKS
close.exe = close cmd window http://www.fileconvoy.com/dfl.php?id=gd5e29d8258e7bd4099923022394575b2077514133

create 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 by fastw3
Link to post
Share on other sites

ssh file format :   admin;admin;76.172.213.130

socks file format 

 

 

127.0.0.1;1850
127.0.0.1;1851
127.0.0.1;1852
127.0.0.1;1853
127.0.0.1;1854
127.0.0.1;1855
 
 
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...