Shark Jack
  • The Shark Jack by Hak5
  • Getting Started
    • Shark Jack Basics
    • Default Settings
  • Beginner Guides
    • Unboxing and Setup
    • Using sharkjack.sh
    • Two Key Commands
    • Writing a Simple Payload
  • Software Updates
    • Manual Upgrade
    • Over-the-Air Upgrade
  • Writing Payloads
    • Payload Development Basics
    • The NETMODE Command
    • The LED Command
    • The SWITCH Command
    • The BATTERY Command
    • The SERIAL_WRITE Command
    • The Cloud C2 commands
    • Included Tools
  • Managing Payloads
    • The UPDATE_PAYLOADS Command
    • The LIST Command
    • The ACTIVATE Command
  • Troubleshooting
    • Firmware Recovery
  • Tips & Tricks
    • Charge the Shark Jack from your Phone
    • Using the Shark Jack with the Plunder Bug as a simple switch
    • Android Serial Setup for Shark Jack Cable
  • Product Information
    • Specifications
    • Important Safety Information and Warnings
Powered by GitBook
On this page
  • Tools Pre-Installed
  • Installing Additional Tools
  • Example

Was this helpful?

  1. Writing Payloads

Included Tools

Tools Pre-Installed

From v1.0.x

  • autossh

  • nmap

  • nc

  • wget

  • python

From v1.1.x

  • arp-scan

  • hping3

  • macchanger

  • ngrep

  • nping

  • p0f

  • tcpdump

Installing Additional Tools

In order to install additional tools the Shark Jack will require an Internet connection in Arming Mode. Typically this is achieved by using the NETMODE DHCP_CLIENT command.

Connect to the Shark Jack shell by SSH (or Serial in the case of the Shark Jack Cable) and plug it into a local network. Ensure that it has Internet connection (e.g. ping -c4 1.1.1.1). If it does not, use the NETMODE command above to establish an Internet connection via DHCP.

Update the package manager with opkg update. Using the opkg list command you may find the name of the package you wish to install. Finally, install the package with the command opkg install <name of package>.

Example

root@shark:~# opkg install httping
Installing httping (2.5-1) to root...
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/packages/httping_2.5-1_mipsel_24kc.ipk
Configuring httping.
root@shark:~# httping
No URL/host to ping given

root@shark:~# httping example.com
PING example.com:80 (/):
connected to 93.184.216.34:80 (43 bytes), seq=0 time= 27.99 ms 
connected to 93.184.216.34:80 (357 bytes), seq=1 time= 18.41 ms 
connected to 93.184.216.34:80 (351 bytes), seq=2 time= 17.20 ms 
connected to 93.184.216.34:80 (43 bytes), seq=3 time= 17.45 ms 
connected to 93.184.216.34:80 (43 bytes), seq=4 time= 17.35 ms 
connected to 93.184.216.34:80 (43 bytes), seq=5 time= 17.39 ms 
^CGot signal 2
--- http://example.com/ ping statistics ---
6 connects, 6 ok, 0.00% failed, time 5946ms
round-trip min/avg/max = 17.2/19.3/28.0 ms
root@shark:~# 

Last updated 3 years ago

Was this helpful?

Learn more about using the opkg package manager from the OpenWRT documentation at

https://openwrt.org/docs/guide-user/additional-software/opkg