Jump to content

SSH and HTTP in Attack Mode


Flatlinebb

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

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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