DedSecInside / TorBot

Dark Web OSINT Tool
Other
2.85k stars 525 forks source link

Connection Refused Error #209

Closed CYB3RMX closed 2 years ago

CYB3RMX commented 3 years ago

Describe the bug I tried to execute program from terminal there is no error but when I try to open web interface and crawl any of onion links my browser throws connection refused error.

To Reproduce Steps to reproduce the behavior:

  1. Start tor service manually: sudo systemctl start tor.service
  2. Go to the torbot-frontend directory: cd src/torbot-frontend/
  3. Starting angular app with: ng serve --open
  4. Try to make simple request via web application

Expected behavior Not any connection errors while crawling onion links

Screenshots tracker

Desktop (please complete the following information):

masterugwee commented 3 years ago

The problem is due to not running the api. Go to the src/api. You can find endpoints.py in the folder, run it. This will solve the issue.

Steps to fix error: Once you run ng serve. In another terminal cd src/api python3 endpoints.py

CYB3RMX commented 3 years ago

@masterugwee Thanks for the reply. I finally to open the program everything is fine but when I try to send any query I encounter this error: mali

masterugwee commented 3 years ago

Strange, I guess there might be some indentation error. Can you update and try again.

PSNAppz commented 3 years ago

Seems like an issue with LinkNode @KingAkeem can you take a look at this?

KingAkeem commented 3 years ago

The links property for LinkNodes was replaced with a get_children method so that the metadata could be loaded dynamically. It looks like the front-end code is still referencing the old links property instead of using the get_children method. I'm not familiar with the UI code but wherever the links are being pulled will need to use the get_children method instead of trying to access the links member variable.

KingAkeem commented 3 years ago

https://github.com/DedSecInside/TorBot/blob/f95eacc5f73bec8a83c059a3cb4b0b091ec7429c/src/modules/link.py#L119-L122 Here's a link to the get_children method. It will return a list of LinkNode objects which are the children of that node.

KingAkeem commented 3 years ago

I'd like to help out more here but I don't know how to use the GUI and there are no instructions, can anyone help out?

KingAkeem commented 2 years ago

Front-end is not ready for use