F3l1nux Posted September 10, 2020 Share Posted September 10, 2020 Hello, I leave you a script that allows you to send the compilation of nmap by telegram bot Link to comment Share on other sites More sharing options...
F3l1nux Posted September 10, 2020 Author Share Posted September 10, 2020 Happy hacking!! Telegran Payload Link to comment Share on other sites More sharing options...
Grid Posted September 20, 2020 Share Posted September 20, 2020 On 9/10/2020 at 10:26 PM, F3l1nux said: Happy hacking!! Telegran Payload Please explain to me step by step how I can set it up Link to comment Share on other sites More sharing options...
chrizree Posted September 20, 2020 Share Posted September 20, 2020 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 oneshttps://www.codefixup.com/create-telegram-bot-with-php/https://www.wikihow.com/Create-a-Telegram-Channel-on-Androidhttps://github.com/GabrielRF/telegram-id#web-channel-id Link to comment Share on other sites More sharing options...
Grid Posted September 20, 2020 Share Posted September 20, 2020 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 oneshttps://www.codefixup.com/create-telegram-bot-with-php/https://www.wikihow.com/Create-a-Telegram-Channel-on-Androidhttps://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 More sharing options...
chrizree Posted September 20, 2020 Share Posted September 20, 2020 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 More sharing options...
Grid Posted September 21, 2020 Share Posted September 21, 2020 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.