Jump to content

Editing Sample-Nmap-Payload scan type makes script fail


th3l0b3_

Recommended Posts

So i was playing with the Shark Jack and when trying to modify the scan type to be "-sV -sC -vv -T4 --max-retries 2 --max-rtt-timeout 50ms" the payload would try to run and give a green complete light after a few seconds and would not save an output.  I tried modifying the scan multiple different ways and it seems to just not want to work other than what the default settings were.  Has anyone had any luck on doing a thorough scan with Shark Jack?  I had it plugged into a power source as well and that did not seem to help it along either so i'm sure this is user error on my part but i am just wondering what i can do to get this puppy doing some deep digging.

Link to comment
Share on other sites

  • 2 weeks later...

Did you use any "official" payload script as base for your modifications? I.e some Shark Jack nmap payload script available on the Hak5 GitHub.

https://github.com/hak5/sharkjack-payloads

EDIT:

Remove the -sC parameter and the scan will work. Run the nmap scan "live" when SSH'd into the SharkJack and you will get the answer why the payload isn't working, i.e. nmap will run but (as it normally does when encountered with something that is not correct or supported) it just shows the list of all the options combined with any eventual error messages and then exit, hence the result that it seems as if the payload has executed, but in reality it has executed with an error. The payload script has no routine to catch this (depending on what payload you have used as base for the script). When running the nmap scan that you specified, it returns: "Scantype C not supported". So, removing -sC will make the payload work.

Edited by chrizree
New information
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.

Guest
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...