Jump to content

SSH and HTTP in Attack Mode


Flatlinebb
 Share

Recommended Posts

Here is a little tip, for those that want to be able to connect to the Shark Jack while in Attack Mode. Make a backup of the original file FIRST!!!

cp /usr/bin/shark_framework /usr/bin/shark_framework.bak

Edit the following file and tell it to start the ssh and httpd services while in Attack Mode. Make a backup of the file FIRST!

/usr/bin/shark_framework

Edit line 155 (or thereabouts):

function enter_attack_mode() {                                                                                                                                                  $LOG "Entering ATTACK mode"
    MODE="ATTACK"                                                                                                                                                               /usr/bin/LED OFF                                                                                                                                                        
    configure_network
    stop_http
    stop_ssh

to 

function enter_attack_mode() {                                                                                                                                                  $LOG "Entering ATTACK mode"
    MODE="ATTACK"                                                                                                                                                               /usr/bin/LED OFF                                                                                                                                                        
    configure_network
    start_http
    start_ssh

 

It made my life so much easier when debugging the nmap scan payload I was working on. You may want to disable those services again when you are actually using the Shark Jack in the field. Just restore it from the backup you made above (and save the customized file as well for future use):

cp /usr/bin/shark_framework /usr/bin/shark_framework.custom
mv /usr/bin/shark_framework.bak /usr/bin/shark_framework

 

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.

 Share

  • Recently Browsing   0 members

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