diff --git a/library/examples/example_crocctl-ipinfo.txt b/library/examples/example_crocctl-ipinfo.txt new file mode 100644 index 0000000..b8dace8 --- /dev/null +++ b/library/examples/example_crocctl-ipinfo.txt @@ -0,0 +1,11 @@ +# Title: WLAN IP Info +# Description: Returns IPv4 address of wlan0 interface +# Author: Hak5Darren +# Version: 1.0 +# Category: Example +# +# +MATCH __crocctl-ipinfo +QUACK ENTER +QUACK STRING $(ifconfig wlan0 | grep "inet addr" | awk {'print $2'} | cut -c 6-) +QUACK ENTER diff --git a/library/examples/example_crocctl-lootinfo.txt b/library/examples/example_crocctl-lootinfo.txt new file mode 100644 index 0000000..466e473 --- /dev/null +++ b/library/examples/example_crocctl-lootinfo.txt @@ -0,0 +1,11 @@ +# Title: Loot Info +# Description: Returns Loot Info +# Author: Hak5Darren +# Version: 1.0 +# Category: Example +# +# +MATCH __crocctl-lootinfo +QUACK ENTER +ls -lh /root/loot | while read line; do QUACK STRING $line; QUACK ENTER; done +QUACK ENTER \ No newline at end of file diff --git a/library/examples/example_crocctl-ssh.txt b/library/examples/example_crocctl-ssh.txt new file mode 100644 index 0000000..74a36bf --- /dev/null +++ b/library/examples/example_crocctl-ssh.txt @@ -0,0 +1,12 @@ +# Title: SSH Server Starter +# Description: Starts SSH Server +# Author: Hak5Darren +# Version: 1.0 +# Category: Example +# +# +MATCH __crocctl-ssh +/etc/init.d/ssh start +QUACK ENTER +QUACK STRING Started SSH Server +QUACK ENTER \ No newline at end of file diff --git a/library/examples/example_doom-e1m1.txt b/library/examples/example_doom-e1m1.txt new file mode 100644 index 0000000..1f5a78e --- /dev/null +++ b/library/examples/example_doom-e1m1.txt @@ -0,0 +1,77 @@ +# Title: Doom E1M1 Example +# Description: QUACK HOLD example poorly playing some of Doom E1M1 +# Author: Hak5Darren +# Version: 1.0 +# Category: Example +# +# +MATCH q +QUACK LOCK + +# CHEATS +QUACK STRING iddqd +sleep 0.5 +QUACK STRING idkfa +sleep 1 + +# CHAINGUN +QUACK HOLD KEYCODE 00,00,21 +sleep 0.2 +QUACK RELEASE + +# UP +QUACK HOLD KEYCODE 00,00,52 +sleep 1.8 +QUACK RELEASE + +# RIGHT +QUACK HOLD KEYCODE 00,00,4f +sleep 0.4 +QUACK RELEASE + +# UP +QUACK HOLD KEYCODE 00,00,52 +sleep 0.6 +QUACK RELEASE + +# LEFT +QUACK HOLD KEYCODE 00,00,50 +sleep 0.4 +QUACK RELEASE + +# UP +QUACK HOLD KEYCODE 00,00,52 +sleep 1 +QUACK RELEASE + +# RIGHT +QUACK HOLD KEYCODE 00,00,4f +sleep 0.5 +QUACK RELEASE + +# UP +QUACK HOLD KEYCODE 00,00,52 +sleep 1 +QUACK RELEASE + +# OPEN +QUACK HOLD KEYCODE 00,00,2c +sleep 0.5 +QUACK RELEASE + +# SHOOT +QUACK HOLD KEYCODE 01,00,00 +sleep 1 +QUACK RELEASE + +# UP +QUACK HOLD KEYCODE 00,00,52 +sleep 1 +QUACK RELEASE + +# SHOOT +QUACK HOLD KEYCODE 01,00,00 +sleep 2 +QUACK RELEASE + +QUACK UNLOCK diff --git a/library/examples/example_text-expander.txt b/library/examples/example_text-expander.txt new file mode 100644 index 0000000..f1af414 --- /dev/null +++ b/library/examples/example_text-expander.txt @@ -0,0 +1,9 @@ +# Title: Text Expander +# Description: Example text expander +# Author: Hak5 +# Version: 1.0 +# Category: Example +# +# +MATCH pineapples +QUACK STRING " are yummy" diff --git a/library/examples/example_text-replacer.txt b/library/examples/example_text-replacer.txt new file mode 100644 index 0000000..075a4e8 --- /dev/null +++ b/library/examples/example_text-replacer.txt @@ -0,0 +1,26 @@ +# Title: Text Replacer +# Description: Example text replacer +# Author: Hak5 +# Version: 1.0 +# Category: Example +# + +MATCH nano +MATCH vim +chance=$((1 + RANDOM % 10)) +if [[ "$LOOT" == "vim" ]];then + if [ "$chance" -gt 5 ]; then + QUACK BACKSPACE + QUACK BACKSPACE + QUACK BACKSPACE + QUACK nano + fi +else + if [ "$chance" -gt 5 ]; then + QUACK BACKSPACE + QUACK BACKSPACE + QUACK BACKSPACE + QUACK BACKSPACE + QUACK vim + fi +fi diff --git a/library/examples/example_zip-code-logger.txt b/library/examples/example_zip-code-logger.txt new file mode 100644 index 0000000..775ddb3 --- /dev/null +++ b/library/examples/example_zip-code-logger.txt @@ -0,0 +1,10 @@ +# Title: ZIP Code Logger +# Description: MATCH Regex example to capture ZIP codes +# Author: Hak5 +# Version: 1.0 +# Category: Example +# +# +MATCH [0-9]{5}(?:-[0-9]{4})? +echo $LOOT >> /root/loot/zip-codes.txt +SAVEKEYS /root/loot/zip-codes.txt LAST 10 diff --git a/library/examples/example_zork.txt b/library/examples/example_zork.txt new file mode 100644 index 0000000..99a6488 --- /dev/null +++ b/library/examples/example_zork.txt @@ -0,0 +1,804 @@ +# Title: Zork +# Description: It is pitch black. You are likely to be eaten by a grue. +# Author: Hak5Darren +# Version: 1.0 +# Category: Example +# +# +MATCH zorkzorkzork +QUACK STRING open mailbox +QUACK ENTER +QUACK STRING read leaflet +QUACK ENTER +QUACK STRING drop leadlet +QUACK ENTER +QUACK STRING north +QUACK ENTER +QUACK STRING north +QUACK ENTER +QUACK STRING climb tree +QUACK ENTER +QUACK STRING take egg +QUACK ENTER +QUACK STRING climb down +QUACK ENTER +QUACK STRING south +QUACK ENTER +QUACK STRING east +QUACK ENTER +QUACK STRING open window +QUACK ENTER +QUACK STRING enter house +QUACK ENTER +QUACK STRING take all +QUACK ENTER +QUACK STRING open bottle then drink water +QUACK ENTER +QUACK STRING open sack +QUACK ENTER +QUACK STRING west +QUACK ENTER +QUACK STRING take sword and lantern +QUACK ENTER +QUACK STRING turn lantern on +QUACK ENTER +QUACK STRING move rug +QUACK ENTER +QUACK STRING open trapdoor +QUACK ENTER +QUACK STRING climb down stairs +QUACK ENTER +QUACK STRING look +QUACK ENTER +QUACK STRING north +QUACK ENTER +QUACK STRING hello, troll +QUACK ENTER +QUACK STRING kill troll with sword +QUACK ENTER +QUACK STRING kill troll +QUACK ENTER +QUACK STRING kill troll +QUACK ENTER +QUACK STRING kill troll +QUACK ENTER +QUACK STRING kill troll +QUACK ENTER +QUACK STRING west +QUACK ENTER +QUACK STRING west +QUACK ENTER +QUACK STRING west +QUACK ENTER +QUACK STRING up +QUACK ENTER +QUACK STRING take key +QUACK ENTER +QUACK STRING drop bottle +QUACK ENTER +QUACK STRING take bag +QUACK ENTER +QUACK STRING sw +QUACK ENTER +QUACK STRING e +QUACK ENTER +QUACK STRING s +QUACK ENTER +QUACK STRING se +QUACK ENTER +QUACK STRING open sack +QUACK ENTER +QUACK STRING give lunch to cyclops +QUACK ENTER +QUACK STRING Odysseus +QUACK ENTER +QUACK STRING e +QUACK ENTER +QUACK STRING e +QUACK ENTER +QUACK STRING open case +QUACK ENTER +QUACK STRING put egg in case +QUACK ENTER +QUACK STRING put coins in case +QUACK ENTER +QUACK STRING look +QUACK ENTER +QUACK STRING open trapdoor +QUACK ENTER +QUACK STRING s +QUACK ENTER +QUACK STRING e +QUACK ENTER +QUACK STRING take painting +QUACK ENTER +QUACK STRING w +QUACK ENTER +QUACK STRING n +QUACK ENTER +QUACK STRING u +QUACK ENTER +QUACK STRING put painting in case +QUACK ENTER +QUACK STRING climb d +QUACK ENTER +QUACK STRING n +QUACK ENTER +QUACK STRING e +QUACK ENTER +QUACK STRING e +QUACK ENTER +QUACK STRING e +QUACK ENTER +QUACK STRING echo +QUACK ENTER +QUACK STRING take bar +QUACK ENTER +QUACK STRING w +QUACK ENTER +QUACK STRING w +QUACK ENTER +QUACK STRING w +QUACK ENTER +QUACK STRING s +QUACK ENTER +QUACK STRING put bar in case +QUACK ENTER +QUACK STRING d +QUACK ENTER +QUACK STRING n +QUACK ENTER +QUACK STRING e +QUACK ENTER +QUACK STRING e +QUACK ENTER +QUACK STRING e +QUACK ENTER +QUACK STRING u +QUACK ENTER +QUACK STRING e +QUACK ENTER +QUACK STRING n +QUACK ENTER +QUACK STRING take matchbook and read it +QUACK ENTER +QUACK STRING n +QUACK ENTER +QUACK STRING s +QUACK ENTER +QUACK STRING e +QUACK ENTER +QUACK STRING take wrench and screwdriver +QUACK ENTER +QUACK STRING take yellow button +QUACK ENTER +QUACK STRING s +QUACK ENTER +QUACK STRING s +QUACK ENTER +QUACK STRING turn bolt with wrench +QUACK ENTER +QUACK STRING drop wrench +QUACK ENTER +QUACK STRING w +QUACK ENTER +QUACK STRING look +QUACK ENTER +sleep 10 +QUACK STRING look +QUACK ENTER +QUACK STRING n +QUACK ENTER +QUACK STRING n +QUACK ENTER +QUACK STRING n +QUACK ENTER +QUACK STRING n +QUACK ENTER +QUACK STRING drop bottle +QUACK ENTER +QUACK STRING take trunk of jewels +QUACK ENTER +QUACK STRING s +QUACK ENTER +QUACK STRING sw +QUACK ENTER +QUACK STRING sw +QUACK ENTER +QUACK STRING w +QUACK ENTER +QUACK STRING s +QUACK ENTER +QUACK STRING u +QUACK ENTER +QUACK STRING put trunk in case +QUACK ENTER +QUACK STRING d +QUACK ENTER +QUACK STRING n +QUACK ENTER +QUACK STRING e +QUACK ENTER +QUACK STRING n +QUACK ENTER +QUACK STRING ne +QUACK ENTER +QUACK STRING n +QUACK ENTER +QUACK STRING n +QUACK ENTER +QUACK STRING take pump +QUACK ENTER +QUACK STRING n +QUACK ENTER +QUACK STRING take trident +QUACK ENTER +QUACK STRING u +QUACK ENTER +QUACK STRING n +QUACK ENTER +QUACK STRING n +QUACK ENTER +QUACK STRING w +QUACK ENTER +QUACK STRING d +QUACK ENTER +QUACK STRING u +QUACK ENTER +QUACK STRING put trident in case +QUACK ENTER +QUACK STRING e +QUACK ENTER +QUACK STRING u +QUACK ENTER +QUACK STRING take rope +QUACK ENTER +QUACK STRING d +QUACK ENTER +QUACK STRING w +QUACK ENTER +QUACK STRING d +QUACK ENTER +QUACK STRING n +QUACK ENTER +QUACK STRING e +QUACK ENTER +QUACK STRING e +QUACK ENTER +QUACK STRING se +QUACK ENTER +QUACK STRING e +QUACK ENTER +QUACK STRING tie rope to railing +QUACK ENTER +QUACK STRING d +QUACK ENTER +QUACK STRING take torch and turn off lamp +QUACK ENTER +QUACK STRING s +QUACK ENTER +QUACK STRING drop all but torch +QUACK ENTER +QUACK e +QUACK ENTER +QUACK take coffin and openm it +QUACK ENTER +QUACK take sceptre +QUACK ENTER +QUACK w +QUACK ENTER +QUACK s +QUACK ENTER +QUACK pray +QUACK ENTER +QUACK e +QUACK ENTER +QUACK s +QUACK ENTER +QUACK e +QUACK ENTER +QUACK enter house +QUACK ENTER +QUACK w +QUACK ENTER +QUACK put coffin and sceptre in trophy case +QUACK ENTER +QUACK d +QUACK ENTER +QUACK n +QUACK ENTER +QUACK e +QUACK ENTER +QUACK e +QUACK ENTER +QUACK se +QUACK ENTER +QUACK e +QUACK ENTER +QUACK d +QUACK ENTER +QUACK s +QUACK ENTER +QUACK take matchbook and bell +QUACK ENTER +QUACK open matchbook +QUACK ENTER +QUACK s +QUACK ENTER +QUACK take candles and book +QUACK ENTER +QUACK put out the candles +QUACK ENTER +QUACK d +QUACK ENTER +QUACK d +QUACK ENTER +QUACK ring bell +QUACK ENTER +QUACK take candles and light a match +QUACK ENTER +QUACK light the candles +QUACK ENTER +QUACK read book +QUACK ENTER +QUACK s +QUACK ENTER +QUACK take skull +QUACK ENTER +QUACK drop book +QUACK ENTER +QUACK drop matches and candles +QUACK ENTER +QUACK n +QUACK ENTER +QUACK u +QUACK ENTER +QUACK n +QUACK ENTER +QUACK n +QUACK ENTER +QUACK n +QUACK ENTER +QUACK w +QUACK ENTER +QUACK w +QUACK ENTER +QUACK s +QUACK ENTER +QUACK u +QUACK ENTER +QUACK put skull in case +QUACK ENTER +QUACK take sceptre +QUACK ENTER +QUACK d +QUACK ENTER +QUACK n +QUACK ENTER +QUACK e +QUACK ENTER +QUACK e +QUACK ENTER +QUACK se +QUACK ENTER +QUACK e +QUACK ENTER +QUACK d +QUACK ENTER +QUACK s +QUACK ENTER +QUACK take all +QUACK ENTER +QUACK look +QUACK ENTER +QUACK s +QUACK ENTER +QUACK d +QUACK ENTER +QUACK n +QUACK ENTER +QUACK n +QUACK ENTER +QUACK n +QUACK ENTER +QUACK e +QUACK ENTER +QUACK u +QUACK ENTER +QUACK e +QUACK ENTER +QUACK e +QUACK ENTER +QUACK inflate plastic with pump +QUACK ENTER +QUACK drop pump and read label +QUACK ENTER +QUACK ENTER +QUACK ENTER +QUACK put sword, screwdriver and sceptre in boat +QUACK ENTER +QUACK get in boat +QUACK ENTER +QUACK launch boat +QUACK ENTER +QUACK look +QUACK ENTER +sleep 15 +QUACK ENTER +QUACK look +QUACK ENTER +sleep 15 +QUACK ENTER +QUACK n +QUACK ENTER +QUACK read label +QUACK ENTER +QUACK ENTER +QUACK ENTER +sleep 15 +QUACK ENTER +QUACK read label +QUACK ENTER +sleep 15 +QUACK ENTER +QUACK look +QUACK ENTER +QUACK read lablel +QUACK ENTER +sleep 15 +QUACK ENTER +QUACK read label +QUACK ENTER +sleep 15 +QUACK ENTER +QUACK look +QUACK ENTER +QUACK take buoy +QUACK ENTER +QUACK e +QUACK ENTER +QUACK get out boat +QUACK ENTER +QUACK open buoy +QUACK ENTER +QUACK take emerald +QUACK ENTER +QUACK drop buoy +QUACK ENTER +QUACK take shovel +QUACK ENTER +QUACK ne +QUACK ENTER +QUACK dig in sand +QUACK ENTER +QUACK dig +QUACK ENTER +QUACK sand +QUACK ENTER +QUACK dig in sand +QUACK ENTER +QUACK sig sand +QUACK ENTER +QUACK take scarab +QUACK ENTER +QUACK drop shovel +QUACK ENTER +QUACK sw +QUACK ENTER +QUACK drop label +QUACK ENTER +QUACK take sword, screwdriver and sceptre from boat +QUACK ENTER +QUACK s +QUACK ENTER +QUACK s +QUACK ENTER +QUACK wave sceptre +QUACK ENTER +QUACK w +QUACK ENTER +QUACK w +QUACK ENTER +QUACK sw +QUACK ENTER +QUACK u +QUACK ENTER +QUACK u +QUACK ENTER +QUACK nw +QUACK ENTER +QUACK w +QUACK ENTER +QUACK enter house +QUACK ENTER +QUACK put sceptre, scarab and emerald in case +QUACK ENTER +QUACK e +QUACK ENTER +QUACK e +QUACK ENTER +QUACK e +QUACK ENTER +QUACK e +QUACK ENTER +QUACK d +QUACK ENTER +QUACK d +QUACK ENTER +QUACK n +QUACK ENTER +QUACK take pot of gold +QUACK ENTER +QUACK open sack +QUACK ENTER +QUACK carry garlic +QUACK ENTER +QUACK sw +QUACK ENTER +QUACK u +QUACK ENTER +QUACK u +QUACK ENTER +QUACK nw +QUACK ENTER +QUACK w +QUACK ENTER +QUACK enter house +QUACK ENTER +QUACK w +QUACK ENTER +QUACK put pot of hold in case +QUACK ENTER +QUACK d +QUACK ENTER +QUACK n +QUACK ENTER +QUACK e +QUACK ENTER +QUACK e +QUACK ENTER +QUACK s +QUACK ENTER +QUACK s +QUACK ENTER +QUACK touch mirror +QUACK ENTER +QUACK n +QUACK ENTER +QUACK w +QUACK ENTER +QUACK n +QUACK ENTER +QUACK w +QUACK ENTER +QUACK n +QUACK ENTER +QUACK take jade figureine +QUACK ENTER +QUACK e +QUACK ENTER +QUACK put torch and screwdriver in basket +QUACK ENTER +QUACK turn on lamp +QUACK ENTER +QUACK n +QUACK ENTER +QUACK d +QUACK ENTER +QUACK get bracelet +QUACK ENTER +QUACK e +QUACK ENTER +QUACK ne +QUACK ENTER +QUACK se +QUACK ENTER +QUACK sw +QUACK ENTER +QUACK d +QUACK ENTER +QUACK d +QUACK ENTER +QUACK s +QUACK ENTER +QUACK take coal +QUACK ENTER +QUACK n +QUACK ENTER +QUACK u +QUACK ENTER +QUACK u +QUACK ENTER +QUACK n +QUACK ENTER +QUACK e +QUACK ENTER +QUACK s +QUACK ENTER +QUACK n +QUACK ENTER +QUACK u +QUACK ENTER +QUACK s +QUACK ENTER +QUACK put coal in basket +QUACK ENTER +QUACK lower basket +QUACK ENTER +QUACK n +QUACK ENTER +QUACK d +QUACK ENTER +QUACK e +QUACK ENTER +QUACK ne +QUACK ENTER +QUACK se +QUACK ENTER +QUACK sw +QUACK ENTER +QUACK d +QUACK ENTER +QUACK d +QUACK ENTER +QUACK w +QUACK ENTER +QUACK drop all +QUACK ENTER +QUACK w +QUACK ENTER +QUACK take all from basket +QUACK ENTER +QUACK s +QUACK ENTER +QUACK open machine +QUACK ENTER +QUACK put the coal in machine +QUACK ENTER +QUACK close machine +QUACK ENTER +QUACK turn switch with screwdriver +QUACK ENTER +QUACK open machine +QUACK ENTER +QUACK take diamond +QUACK ENTER +QUACK drop screwdriver +QUACK ENTER +QUACK n +QUACK ENTER +QUACK put torch and diamond in basket +QUACK ENTER +QUACK e +QUACK ENTER +QUACK take all but timber +QUACK ENTER +QUACK turn on lamp +QUACK ENTER +QUACK e +QUACK ENTER +QUACK u +QUACK ENTER +QUACK u +QUACK ENTER +QUACK n +QUACK ENTER +QUACK e +QUACK ENTER +QUACK s +QUACK ENTER +QUACK n +QUACK ENTER +QUACK u +QUACK ENTER +QUACK s +QUACK ENTER +QUACK raise basket +QUACK ENTER +QUACK w +QUACK ENTER +QUACK s +QUACK ENTER +QUACK e +QUACK ENTER +QUACK s +QUACK ENTER +QUACK d +QUACK ENTER +QUACK u +QUACK ENTER +QUACK i +QUACK ENTER +QUACK put bracelet and figurine in case +QUACK ENTER +QUACK look +QUACK ENTER +QUACK take egg +QUACK ENTER +QUACK drop garlic +QUACK ENTER +QUACK e +QUACK ENTER +QUACK u +QUACK ENTER +QUACK take knife +QUACK ENTER +QUACK drop sword +QUACK ENTER +QUACK d +QUACK ENTER +QUACK w +QUACK ENTER +QUACK w +QUACK ENTER +QUACK w +QUACK ENTER +QUACK u +QUACK ENTER +QUACK give egg to thief +QUACK ENTER +QUACK kill thief +QUACK ENTER +QUACK kill thirf +QUACK ENTER +QUACK take all +QUACK ENTER +QUACK open egg +QUACK ENTER +QUACK take canary +QUACK ENTER +QUACK drop stiletto +QUACK ENTER +QUACK take canary +QUACK ENTER +QUACK d +QUACK ENTER +QUACK e +QUACK ENTER +QUACK e +QUACK ENTER +QUACK i +QUACK ENTER +QUACK put challice, egg, torch and diamond in case +QUACK ENTER +QUACK e +QUACK ENTER +QUACK e +QUACK ENTER +QUACK n +QUACK ENTER +QUACK n +QUACK ENTER +QUACK wind canary +QUACK ENTER +QUACK take bauble +QUACK ENTER +QUACK s +QUACK ENTER +QUACK e +QUACK ENTER +QUACK enter house +QUACK ENTER +QUACK w +QUACK ENTER +QUACK put bauble and canary in case +QUACK ENTER +QUACK examine case +QUACK ENTER +QUACK take map +QUACK ENTER +QUACK read map +QUACK ENTER +QUACK w +QUACK ENTER +QUACK e +QUACK ENTER +QUACK e +QUACK ENTER +QUACK s +QUACK ENTER +QUACK w +QUACK ENTER +QUACK sw +QUACK ENTER +QUACK enter barrow \ No newline at end of file