You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bot Bounty, a bot for Pentesting & Bug Bounty | Drayko's Blog #1
I'm using heroku cli in kali and it doesn't show erroe line where I'm wrong , I set my bot api token and user id , When I run code with python (python3 bot.py) it's work (telegram bot) work fine but when I deploy this code in heroku it won't work and showing heroku crashed in kali linux terminal and bot not responding in telegram app
Application Logs
2021-09-24T08:48:10.138923+00:00 app[worker.1]: Traceback (most recent call last):
2021-09-24T08:48:10.138940+00:00 app[worker.1]: File "/app/bot.py", line 5, in
2021-09-24T08:48:10.139016+00:00 app[worker.1]: from telebot import types
2021-09-24T08:48:10.139045+00:00 app[worker.1]: ImportError: cannot import name 'types' from 'telebot' (/app/.heroku/python/lib/python3.9/site-packages/telebot/init.py)
2021-09-24T08:48:10.262300+00:00 heroku[worker.1]: Process exited with status 1
2021-09-24T08:48:10.454021+00:00 heroku[worker.1]: State changed from up to crashed
Great! It's a problem with Heroku and not with the Code. May be a previous library installed or other version of it
Try something like this. or search for similar problems on Internet about Heroku problems.
but not showing amssenum and nmap result (output) in telegram bot , When I deploy code in heroku , but When I run code directly (python3 bot.py) then it's showing output in telegram bot
Did you install that tools in Heroku? If you do it, check it if works correct with a simple example(tool by tool). If the problem persist check the logs again.
Activity
simdatahoon commentedon Sep 23, 2021
Not Work , Error in Python Code
Heroku Crashed When I Deploy this in to Heroku Server
Drayko commentedon Sep 23, 2021
Hi! do you know the line or what type of error crash it?
remember that you need to install the library and set the token
simdatahoon commentedon Sep 23, 2021
I'm using heroku cli in kali and it doesn't show erroe line where I'm wrong , I set my bot api token and user id , When I run code with python (python3 bot.py) it's work (telegram bot) work fine but when I deploy this code in heroku it won't work and showing heroku crashed in kali linux terminal and bot not responding in telegram app
Drayko commentedon Sep 24, 2021
Oh ok... Could be a lot of things... I didn't try to serve it at Heroku... so I can't help you without a log of which error may cause it, sorry. But could be an error with the other library, for example OS(https://stackoverflow.com/questions/68358807/os-module-is-not-working-after-flask-project-deployed-on-heroku).
If you search how to get a log of Heroku also could be helpful.
simdatahoon commentedon Sep 24, 2021
Here is a heroku log
Application Logs
2021-09-24T08:48:10.138923+00:00 app[worker.1]: Traceback (most recent call last):
2021-09-24T08:48:10.138940+00:00 app[worker.1]: File "/app/bot.py", line 5, in
2021-09-24T08:48:10.139016+00:00 app[worker.1]: from telebot import types
2021-09-24T08:48:10.139045+00:00 app[worker.1]: ImportError: cannot import name 'types' from 'telebot' (/app/.heroku/python/lib/python3.9/site-packages/telebot/init.py)
2021-09-24T08:48:10.262300+00:00 heroku[worker.1]: Process exited with status 1
2021-09-24T08:48:10.454021+00:00 heroku[worker.1]: State changed from up to crashed
Drayko commentedon Sep 24, 2021
Great! It's a problem with Heroku and not with the Code. May be a previous library installed or other version of it
Try something like this. or search for similar problems on Internet about Heroku problems.
simdatahoon commentedon Sep 24, 2021
Thanks , it works now but
but not showing amssenum and nmap result (output) in telegram bot , When I deploy code in heroku , but When I run code directly (python3 bot.py) then it's showing output in telegram bot
Drayko commentedon Sep 27, 2021
Did you install that tools in Heroku? If you do it, check it if works correct with a simple example(tool by tool). If the problem persist check the logs again.
simdatahoon commentedon Sep 27, 2021
No , I haven't install these tools
How to install amass & nmap in heroku server
Drayko commentedon Sep 27, 2021
I'm not sure if Heroku allows it... you have to search about it if there is an option.
simdatahoon commentedon Sep 27, 2021
Ok Brother Ty