Code Monkey home page Code Monkey logo

trustedsec / meterssh Goto Github PK

View Code? Open in Web Editor NEW
519.0 519.0 184.0 14 KB

MeterSSH is a way to take shellcode, inject it into memory then tunnel whatever port you want to over SSH to mask any type of communications as a normal SSH connection. The way it works is by injecting shellcode into memory, then wrapping a port spawned (meterpeter in this case) by the shellcode over SSH back to the attackers machine. Then connecting with meterpreter's listener to localhost will communicate through the SSH proxy, to the victim through the SSH tunnel. All communications are relayed through the SSH tunnel and not through the network.

Python 100.00%

meterssh's People

Contributors

mandreko avatar ryman1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

meterssh's Issues

No Shell

I cant get the shell after running it in the victim. All of the Python scripts and pyinstaller and tools were done in a Windows 7 x64 bit machine.

Ok, i will tell you the details :

user = 'prince'
password = 'MRN11047'
rhost = '192.168.1.7'
port = '22'
rport = '8021'

Here user 'prince' is a local user ( not root ) and then the user password. The Rhost is my attacker ip ( my virtual machine ) and the port is the default port for ssh that is 22. I didn't know what is rport and so entered it as 8021 but yet i couldn't get the shell.

The Python tools were : Python 2.7, pyinstaller 2.7, paramiko, ecdsa, pyinstaller develop.

Paramiko, ecdsa and pyinstaller develop were installed using the pip commands :

pip install paramiko
pip install ecdsa
pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip

The command for meterssh.py to exe I use is : python.exe C:\Pyinstaller\pyinstaller.py --noconsole --onefile C:\meterssh\meterssh.py

but then i get an execution error of : WARNING : the file is found but should not be and some location in the temporary folder.

Then I used the command : python.exe C:\Pyinstaller\pyinstaller.py --noconsole C:\meterssh\meterssh.py

And then i get no error and NO SHELL.

What am i doing wrong?

I cant run setup.py.

Thinking that there is no monitor.py, I tried using setup.py.

Nothing happens.

Is there a file error or did i do something wrong?? (I'm a N00b)

or should i download monitor.py from somewhere.

Ctypes Error

When Using python3 I get the following Error.

image

Traceback (most recent call last):
File "c:\meterssh\meterssh_og.py", line 48, in inject
ctypes.c_int(len(shellcode)))
ctypes.ArgumentError: argument 1: <class 'TypeError'>: wrong type

Build Environmen

Having some issues with openssl and python cryptography.
Win10 Python3.4

What was the working environment you guys used? Windows version and python versions?

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.