Jump to content

A bug in the nmap scan payload?


Recommended Posts

Hey @Darren Kitchen

I may have found a bug in the sample nmap payload, or perhaps all payloads. Please correct me if I'm wrong.

At some point the count number in my nmap output files stopped advancing beyond 3. After I figured out how to execute the payload manually from SSH, by looking at the the /usr/bin/shark_framework file:

bash -C payload/payload.sh 

I started seeing this error:

payload/payload.sh: line 29: /etc/shark/nmap/scan-count: cannot overwrite existing file

Line 29 is:


And the error is coming from the "bash -C". According to man bash, "-C  If set, disallow existing regular files to be overwritten by redirection of output."

Perhaps it was supposed to be a lower-case "c"? Probably not, because with -c I get:

bash: payload/payload.sh: Permission denied

Hope this makes sense.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...