-
Notifications
You must be signed in to change notification settings - Fork 17
Add support for FreeBSD #168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,7 +7,7 @@ | |
| name: x | ||
| repeatable: False | ||
| platforms: | ||
| linux: | ||
| freebsd,linux: | ||
| sh: | ||
| command: | | ||
| touch ~/.bashrc; | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -7,11 +7,11 @@ | |||||||||||||||||||||||||
| attack_id: x | ||||||||||||||||||||||||||
| name: x | ||||||||||||||||||||||||||
| platforms: | ||||||||||||||||||||||||||
| linux: | ||||||||||||||||||||||||||
| freebsd,linux: | ||||||||||||||||||||||||||
| sh: | ||||||||||||||||||||||||||
| command: | | ||||||||||||||||||||||||||
| nc -nlv 7011 & | ||||||||||||||||||||||||||
|
Comment on lines
+10
to
13
|
||||||||||||||||||||||||||
| freebsd,linux: | |
| sh: | |
| command: | | |
| nc -nlv 7011 & | |
| freebsd: | |
| sh: | |
| command: | | |
| nc -nlv 7011 & | |
| linux: | |
| sh: | |
| command: | | |
| nc -nlv 7011 & |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,9 +7,9 @@ | |
| attack_id: x | ||
| name: x | ||
| platforms: | ||
| linux: | ||
| freebsd,linux: | ||
|
||
| sh: | ||
| command: | | ||
| mv ./phish_email.txt /var/mail/victim | ||
| payloads: | ||
| - phish_email.txt | ||
| - phish_email.txt | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,7 +7,7 @@ | |
| attack_id: x | ||
| name: x | ||
| platforms: | ||
| linux: | ||
| freebsd,linux: | ||
|
||
| sh: | ||
| command: | | ||
| crontab -l > new_crontab; | ||
|
|
@@ -26,4 +26,4 @@ | |
| command: | | ||
| $action = New-ScheduledTaskAction -Execute "calc.exe"; | ||
| $trigger = New-ScheduledTaskTrigger -Daily -At 9am; | ||
| Register-ScheduledTask -Action $action -Trigger $trigger -TaskName "FindMe" -Description "Pretend malicious scheduled action"; | ||
| Register-ScheduledTask -Action $action -Trigger $trigger -TaskName "FindMe" -Description "Pretend malicious scheduled action"; | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Combining OS names in a single YAML key results in an invalid platform identifier. Please split into two keys (freebsd: and linux:) so this step executes on both platforms as intended.