Skip to content
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

Some abilities not working? #3096

Open
frankvoelker opened this issue Nov 27, 2024 · 1 comment
Open

Some abilities not working? #3096

frankvoelker opened this issue Nov 27, 2024 · 1 comment
Labels

Comments

@frankvoelker
Copy link

Hey. I am using tag 5.0.0

Some abilities are not working as intended: For example there is an "Port Scan" ability which is configured for linux with "sh" executor and looks like this

for port in {1..1000}; do (2>/dev/null echo >/dev/tcp/10.10.10.10/$port) && echo port $port is open ; done

but when I try to execute this on a Linux agend it only returns error "failed". I tried to execute this command manually in my Linux-Agent-Machine ( in an "sh" shell !) and its not working. It works in bash-shell though. So if i change the command of this ability to

bash -c "for port in {1..1000}; do (2>/dev/null echo >/dev/tcp/10.10.10.10/$port) && echo port $port is open ; done"

it is executed correctly, the agent does the port scan but the return/result is still "failed" because it is not correctly reading/returning the output from this scan.

Another example was an "ping" ability for Linux which looked like

ping -n 5 10.10.10.10

which got stuck in a ping loop forever because "-n" is wrong parameter. It should be

ping -c 5 10.10.10.10

Or am I doing something wrong here?

@rachelcamurphy
Copy link

Hi Frank,

Apologies that you've run into some outdated commands. You're definitely not doing anything wrong. If your corrections are working, which they appear to be, feel free to submit a PR for the abilities and our dev team can review and merge the working command. We would appreciate your contributions for any additional outdated commands you may find also!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants