Uptime payload
Uptime payload is based on LAN Turtle's Uptime module (find out more at: https://github.com/hak5/lanturtle-modules/blob/gh-pages/modules/uptime). Payload's lifecycle: check if USB is available and if it is, continue -> setup environment by choosing NETMODE to be transparent, making uptime directory at the loot folder and waiting for 5 seconds -> make an infinite loop waiting for button click -> on click, log uptime to uptime.log file.pull/31/head
parent
a3d8d72182
commit
8b2ae0d16c
|
@ -0,0 +1,30 @@
|
|||
#!/bin/bash
|
||||
# Title: Uptime
|
||||
# Description: The uptime payload displays the current time, the length of time the system has been up, the number of users, and the load average of the system over the last 1, 5, and 15 minutes.
|
||||
# Author: Moliata
|
||||
# Version: 1.0
|
||||
# Category: general
|
||||
# Target: Packet Squirrel by Hak5
|
||||
# Net Mode: TRANSPARENT
|
||||
function start()
|
||||
{
|
||||
LED SETUP
|
||||
NETMODE TRANSPARENT
|
||||
mkdir -p /mnt/loot/uptime
|
||||
sleep 5
|
||||
}
|
||||
function run() {
|
||||
LED ATTACK
|
||||
while true
|
||||
do
|
||||
BUTTON && {
|
||||
uptime >> /mnt/loot/uptime/uptime.log
|
||||
LED FINISH
|
||||
}
|
||||
done
|
||||
}
|
||||
[[ ! -f /mnt/NO_MOUNT ]] && {
|
||||
start && run
|
||||
} || {
|
||||
LED FAIL
|
||||
}
|
Loading…
Reference in New Issue