Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GNS3_unikernel_testbed
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NGUYEN Do Duc Anh
GNS3_unikernel_testbed
Commits
48dc594e
Commit
48dc594e
authored
4 weeks ago
by
NGUYEN Do Duc Anh
Browse files
Options
Downloads
Patches
Plain Diff
update start attack script
parent
01415d04
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
window/monitor_start_attack.ps1
+21
-0
21 additions, 0 deletions
window/monitor_start_attack.ps1
window/run_monitor_start_attack_script.bat
+2
-0
2 additions, 0 deletions
window/run_monitor_start_attack_script.bat
with
23 additions
and
0 deletions
window/monitor_start_attack.ps1
0 → 100644
+
21
−
0
View file @
48dc594e
# 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
This diff is collapsed.
Click to expand it.
window/run_monitor_start_attack_script.bat
0 → 100644
+
2
−
0
View file @
48dc594e
@echo
off
powershell
-ExecutionPolicy
Bypass
-File
"C:\Users\window7_pc\Desktop\monitor_start_attack_script.ps1"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment