trustedsec / CS-Situational-Awareness-BOF

Situational Awareness commands implemented using Beacon Object Files
GNU General Public License v2.0
1.26k stars 218 forks source link

add probe bof #69

Closed rwhitcroft closed 2 years ago

rwhitcroft commented 2 years ago

Test if a remote port is open, similar to nc -z.

Issues:

I realize this is not a groundbreaking addition to the repo, so no big deal if it's too much of a hassle to add. I had a blast learning BOF stuff either way.

[server] sliver (ALTERNATIVE_STAMINA) > probe 127.0.0.1 445

[*] Successfully executed probe (coff-loader)
[*] Got output:
127.0.0.1:445 OPEN

[server] sliver (ALTERNATIVE_STAMINA) > probe 127.0.0.1 12345

[*] Successfully executed probe (coff-loader)
[*] Got output:
127.0.0.1:12345 FAILED

[server] sliver (ALTERNATIVE_STAMINA) > probe dc01.ad.local 445

[*] Successfully executed probe (coff-loader)
[*] Got output:
dc01.ad.local:445 OPEN
freefirex commented 2 years ago

I'll be happy to review this and work with you on getting it merged in 😄

Just to let you know timeline I'm teaching this week, so I'll review and provide any feedback monday or tuesday of next week.

rwhitcroft commented 2 years ago

Thank you for the review and suggestions! I think I got them all fixed.

freefirex commented 2 years ago

Thanks for making those changes! merged