Code Monkey home page Code Monkey logo

Comments (6)

kleiton0x00 avatar kleiton0x00 commented on July 19, 2024 2

@GeneralBison thank you for showing the problem and introducing the solution as well. I managed to reproduce the issue and indeed there was an error in parsing and your solution works perfectly. The error happened because the software was developed before the new updates of both Pyngrok and Ngrok.
I updated the code to what you suggested :)

from xsscope.

GeneralBison avatar GeneralBison commented on July 19, 2024 1

Sorry I would have made a pull request but I've been really busy with work. Thanks for fixing!

from xsscope.

kleiton0x00 avatar kleiton0x00 commented on July 19, 2024

There seems to be an error with your Ngrok.

  • Make sure you have Ngrok installed (not only in Xsscope directory, but also in /usr/bin PATH)
  • Did you activate Ngrok (during setup.py by pasting the activation code)?
  • Also make sure to restart the computer if the problem persists.

from xsscope.

GeneralBison avatar GeneralBison commented on July 19, 2024

I've also been having this problem, specifically on Kali.
Ngrok has installed sucessfully and I'm able to run it by itself, I've even tried copying the installed bin into the XSScope directory.

The issue is with the way that the program is attempting to substring tcp_server
image

EDIT: I'll also add that this is using Python 3.9.10, ngrok 2.3.40 and pyngrok 5.1.0 with XSScope installed as per the setup.sh script.

Maybe this worked using a previous version of any of these components but this is the current state as I can see it.

from xsscope.

GeneralBison avatar GeneralBison commented on July 19, 2024

What's the expected behaviour? Because looking at the code in its current state, str(tcp_server) gives you NgrokTunnel: "tcp://<x>.tcp.ngrok.io:<port>" -> "localhost:1337", the IP address isn't returned at all.

from xsscope.

GeneralBison avatar GeneralBison commented on July 19, 2024

If what you actually want is the hostname, this would work:

            tcp_server = str(tcp_server.public_url)
            tcp_server_host = str(tcp_server.split('/')[2]).split(':')[0]
            tcp_server_port = tcp_server.split(':')[2]

from xsscope.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.