GithubHelp home page GithubHelp logo

nathanlopez / stitch Goto Github PK

View Code? Open in Web Editor NEW
3.0K 181.0 658.0 3.02 MB

Python Remote Administration Tool (RAT)

Home Page: https://nathanlopez.github.io/Stitch/

License: Other

Python 85.57% Shell 7.70% C 0.24% Objective-C 5.89% Roff 0.60%
mac-osx linux payload python rat nsis keylogger windows cross-platform reverse-shell

stitch's Introduction

DISCLAIMER

Stitch is for education/research purposes only. The author takes NO responsibility and/or liability for how you choose to use any of the tools/source code/any files provided. The author and anyone affiliated with will not be liable for any losses and/or damages in connection with use of ANY files provided with Stitch. By using Stitch or any files included, you understand that you are AGREEING TO USE AT YOUR OWN RISK. Once again Stitch and ALL files included are for EDUCATION and/or RESEARCH purposes ONLY. Stitch is ONLY intended to be used on your own pentesting labs, or with explicit consent from the owner of the property being tested.

About Stitch

A Cross Platform Python Remote Administration Tool:

This is a cross platform python framework which allows you to build custom payloads for Windows, Mac OSX and Linux as well. You are able to select whether the payload binds to a specific IP and port, listens for a connection on a port, option to send an email of system info when the system boots, and option to start keylogger on boot. Payloads created can only run on the OS that they were created on.

Features

Cross Platform Support

  • Command and file auto-completion
  • Antivirus detection
  • Able to turn off/on display monitors
  • Hide/unhide files and directories
  • View/edit the hosts file
  • View all the systems environment variables
  • Keylogger with options to view status, start, stop and dump the logs onto your host system
  • View the location and other information of the target machine
  • Execute custom python scripts which return whatever you print to screen
  • Screenshots
  • Virtual machine detection
  • Download/Upload files to and from the target system
  • Attempt to dump the systems password hashes
  • Payloads' properties are "disguised" as other known programs

Windows Specific

  • Display a user/password dialog box to obtain user password
  • Dump passwords saved via Chrome
  • Clear the System, Security, and Application logs
  • Enable/Disable services such as RDP,UAC, and Windows Defender
  • Edit the accessed, created, and modified properties of files
  • Create a custom popup box
  • View connected webcam and take snapshots
  • View past connected wifi connections along with their passwords
  • View information about drives connected
  • View summary of registry values such as DEP

Mac OSX Specific

  • Display a user/password dialog box to obtain user password
  • Change the login text at the user's login screen
  • Webcam snapshots

Mac OSX/Linux Specific

  • SSH from the target machine into another host
  • Run sudo commands
  • Attempt to bruteforce the user's password using the passwords list found in Tools/
  • Webcam snapshots? (untested on Linux)

Implemented Transports

All communication between the host and target is AES encrypted. Every Stitch program generates an AES key which is then put into all payloads. To access a payload the AES keys must match. To connect from a different system running Stitch you must add the key by using the showkey command from the original system and the addkey command on the new system.

Implemented Payload Installers

The "stitchgen" command gives the user the option to create NSIS installers on Windows and Makeself installers on posix machines. For Windows, the installer packages the payload and an elevation exe ,which prevents the firewall prompt and adds persistence, and places the payload on the system. For Mac OSX and Linux, the installer places the payload and attempts to add persistence. To create NSIS installers you must download and install NSIS.

Wiki

Requirements

For easy installation run the following command that corresponds to your OS:

# for Windows
pip install -r win_requirements.txt

# for Mac OSX
pip install -r osx_requirements.txt

# for Linux
pip install -r lnx_requirements.txt

Windows Specific

Mac OSX Specific

Mac OSX/Linux Specific

To Run

python main.py
or
./main.py

Motivation

My motivation behind this was to advance my knowledge of python, hacking, and just to see what I could accomplish. Was somewhat discouraged and almost abandoned this project when I found the amazing work done by n1nj4sec, but still decided to put this up since I had already come so far.

Other open-source Python RATs for Reference

Screenshots

linux options win_options win_upload osx_download

License

See LICENSE

stitch's People

Contributors

daedroza avatar nathanlopez 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  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

stitch's Issues

Payload generation

What are these different generated payloads?

  • sshst
  • nmbd_st
  • cupst
  • smb_st
  • stitch_lnx

stitchgen problem

hi first thanks for this great rat, but when i try to generate a payload using stitchgen, i have nothing in binaries folder ""i'm using kali linux"..

Syntax Error

I manually installed all the dependencies for Kali Linux. When I run main.py using python3, I get this error: Traceback (most recent call last):
File "main.py", line 5, in
from Application.stitch_cmd import *
File "/home/kali/Stitch/Application/stitch_cmd.py", line 70
print ""
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("")?

pyinstaller command not found error inside of log.

[03/25/2017 11:50:06 PM] INFO: [!] /bin/sh: pyinstaller: command not found

any help? i think this is why it doesnt work generating payloads for me..

ive tried reinstalling and updating pyinstaller and still this happens :/

Installation Problem (Windows)

Im not sure how to fix this because i havent seen any issue with it

C:\Users\dillp\Downloads\Stitch-master\Stitch-master>pip install -r win_requirements.txt
Collecting colorama==0.3.7
Using cached colorama-0.3.7-py2.py3-none-any.whl (19 kB)
Collecting email==4.0.2
Using cached email-4.0.2.tar.gz (1.2 MB)
ERROR: Command errored out with exit status 1:
command: 'c:\users\dillp\appdata\local\programs\python\python39\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\dillp\AppData\Local\Temp\pip-install-7ndkds4l\email_4152e713dcfe436f9f0a55d8771090c2\setup.py'"'"'; file='"'"'C:\Users\dillp\AppData\Local\Temp\pip-install-7ndkds4l\email_4152e713dcfe436f9f0a55d8771090c2\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\dillp\AppData\Local\Temp\pip-pip-egg-info-dyolyek2'
cwd: C:\Users\dillp\AppData\Local\Temp\pip-install-7ndkds4l\email_4152e713dcfe436f9f0a55d8771090c2
Complete output (11 lines):
Traceback (most recent call last):
File "", line 1, in
File "c:\users\dillp\appdata\local\programs\python\python39\lib\site-packages\setuptools_init_.py", line 16, in
import setuptools.version
File "c:\users\dillp\appdata\local\programs\python\python39\lib\site-packages\setuptools\version.py", line 1, in
import pkg_resources
File "c:\users\dillp\appdata\local\programs\python\python39\lib\site-packages\pkg_resources_init_.py", line 33, in
import email.parser
File "C:\Users\dillp\AppData\Local\Temp\pip-install-7ndkds4l\email_4152e713dcfe436f9f0a55d8771090c2\email\parser.py", line 10, in
from cStringIO import StringIO
ModuleNotFoundError: No module named 'cStringIO'
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/71/e7/816030d3b0426c130040bd068be62b9213357ed02896f5d9badcf46d1b5f/email-4.0.2.tar.gz#sha256=e2254c9b4e4cf33553f7dfc85b500eea4c3e96733736f38c9dbfc3dcc6303705 (from https://pypi.org/simple/email/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement email==4.0.2 (from versions: 2.5.8, 3.0.1, 4.0.1, 4.0.2, 6.0.0a1)
ERROR: No matching distribution found for email==4.0.2

Could not find a version that satisfies the requirement PIL==1.1.7

version: macOS Sierra + xcode 8 + xcode command lines tools + python 2.7.13

I try first command "pip install -r osx...."
I have error at 7 : PIP 1.1.7


Collecting PIL==1.1.7 (from -r osx_requirements.txt (line 7))
  Could not find a version that satisfies the requirement PIL==1.1.7 (from -r osx_requirements.txt (line 7)) (from versions: )
No matching distribution found for PIL==1.1.7 (from -r osx_requirements.txt (line 7))

I tried to replace PIL=1.1.7 to Pillow=4.0.0 and it seems working

I only have problem when finish I get this error:
Command "/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-y6xdMM/pyobjc-core/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-E5iVNQ-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-y6xdMM/pyobjc-core/

What this mean?

any idea here ? how can I fix it thanks

Support for Android ?

The best thing you can make is Android rat support with webcam snaps, mic recording, download of images from devices memory, geolocate and mic streaming and keylogger.

Payload does not install (host machine)

Generates error:
Traceback (most recent call last): File "st_main.py", line 1, in <module> File "zipextimporter.pyc", line 82, in load_module File "requirements.pyc", line 15, in <module> ImportError: No module named requests
Its a VM.

Connecting doesn't work. and What payload works?

this happens when I try to connect with all working open ports and I did it locally and over the internet and same result..

[Stitch] /Users/user/Stitch> connect 192.168.1.64 4455

[*] Connecting to 192.168.1.64 on port 4455...

[+] New successful connection from ('192.168.1.64', 54379)


[!] Exception!

[*] timed out

[-] Disconnected from 192.168.1.64

Connection times out

Every time I try to connect to a client I get this:
[*] Connecting to 172.20.84.182 on port 4040...

[+] New successful connection from ('172.20.84.182', 53644)

[!] Exception!

[*] timed out

[-] Disconnected from 172.20.84.182

Can somebody tell me if I am doing this wrong, or if there is something I need to change?
Thanks

how to fix it?

[+] Stitch Modules are now complete.

[*] Starting exe generation...

error: [Errno 2] No such file or directory: 'libopenblas.JKAMQ5EVHIVCPXP2XZJB2RQ
PIN47S32M.gfortran-win32.dll'

installation error

C:\Users\spin\Downloads\Stitch-master\Stitch-master>pip install -r win_requirements.txt
Collecting colorama==0.3.7 (from -r win_requirements.txt (line 1))
Downloading colorama-0.3.7-py2.py3-none-any.whl
Collecting email==4.0.2 (from -r win_requirements.txt (line 2))
Downloading email-4.0.2.tar.gz (1.2MB)
100% |████████████████████████████████| 1.2MB 312kB/s
Collecting logging==0.4.9.6 (from -r win_requirements.txt (line 3))
Downloading logging-0.4.9.6.tar.gz (96kB)
100% |████████████████████████████████| 102kB 2.4MB/s
Collecting PIL==1.1.7 (from -r win_requirements.txt (line 4))
Could not find a version that satisfies the requirement PIL==1.1.7 (from -r win_requirements.txt (line 4)) (from versions: )
No matching distribution found for PIL==1.1.7 (from -r win_requirements.txt (line 4))

Question

Would this be similar to Pro Rat?

Uninstall stitch

I accidentally installed stitch on my Ubuntu 16.04.03 computer. How can I uninstall it?

Installer is broken

2 things:

1. PIL is dead and no versions of it exist on PIP. I had to use Pillow instead.
2. py2exe's the same way, except when I used a different version of it (since it actually had different versions), it says that all of the versions are python 3.3 or later only.

OSX 10.11 Requirements Failure

I am trying to build the pip requirements on OSX 10.11; I can't seem to find info anywhere on building pyobjc 2.5.1.

I was able to get past PIL through Issue#14, but I can't seem to get past building of pyobjc 2.5.1.

When I use stitchgen with the modules that did successfully install, the binary is basically unusable and complains about missing python dependencies, to which I assume is a result of of the incomplete requirements, so I suppose someone could correct me if I am wrong?

I am not skilled enough in python to make manual modifications to the pyobjc 2.5.1 source to force it to install, as it feels 10.11 is a lesser version than 10.8.

I also tried changing the requirements to work with the latest version of pyobjc (3.2.1) but it appears as if this doesn't help.

When installing PyOBJC 3.2.1 and attempting to run the payload binary directly (outside of the virtualenv):

./Safari 
Failed to execute script st_main
Traceback (most recent call last):
  File "st_main.py", line 1, in <module>
  File "/private/var/folders/65/vrd36dv964sf_bgr6rzrqj8hrqg1mc/T/pip-build-2YHMO_/PyInstaller/PyInstaller/loader/pyimod03_importers.py", line 389, in load_module
  File "requirements.py", line 28, in <module>
  File "/private/var/folders/65/vrd36dv964sf_bgr6rzrqj8hrqg1mc/T/pip-build-2YHMO_/PyInstaller/PyInstaller/loader/pyimod03_importers.py", line 389, in load_module
  File "st_utils.py", line 3, in <module>
  File "<string>", line 25, in <module>
  File "/private/var/folders/65/vrd36dv964sf_bgr6rzrqj8hrqg1mc/T/pip-build-2YHMO_/PyInstaller/PyInstaller/loader/pyimod03_importers.py", line 389, in load_module
  File "st_osx_keylogger.py", line 3, in <module>
  File "<string>", line 9, in <module>

Note: I am building this entirely in a virtualenv just to ensure there is a clean list of dependencies installed.

Any tips?

Mail Delivery !

Im asking is there is a mail delivery feature.
If not , Please someone add it !
The port forwarding and stay with PC is not good, I think.

error in line 58 in b64encode

Traceback (most recent call last):
File "C:\Users\myuser:D\Downloads\Stitch-master\Stitch-master\Application\main.py", line 5, in
from stitch_cmd import *
File "C:\Users\myuser:D\Downloads\Stitch-master\Stitch-master\Application\stitch_cmd.py", line 5, in
import stitch_winshell
File "C:\Users\myuser:D\Downloads\Stitch-master\Stitch-master\Application\stitch_winshell.py", line 5, in
import stitch_lib
File "C:\Users\myuser:D\Downloads\Stitch-master\Stitch-master\Application\stitch_lib.py", line 5, in
from stitch_help import *
File "C:\Users\myuser:D\Downloads\Stitch-master\Stitch-master\Application\stitch_help.py", line 5, in
from stitch_utils import st_print
File "C:\Users\myuser:D\Downloads\Stitch-master\Stitch-master\Application\stitch_utils.py", line 25, in
from Stitch_Vars.globals import *
File "C:\Users\myuser:D\Downloads\Stitch-master\Stitch-master\Application\Stitch_Vars\globals.py", line 77, in
key = base64.b64encode(key)
File "C:\Users\myuser:D\AppData\Local\Programs\Python\Python39\lib\base64.py", line 58, in b64encode
encoded = binascii.b2a_base64(s, newline=False)
TypeError: a bytes-like object is required, not 'str'

Add pip requirements.txt files for dependencies

Exporting dependencies into requirements.txt files for pip would streamline setup.

pip freeze > requirements.txt

Three different files may be required since dependencies differ amongst OS (i.e. win_requirements.txt, osx_requirements.txt ...).

And then new users would just clone, set up a Python 2.7 virtual environment, and go
pip install -r win_requirements.txt

./main.py permission denied

zsh: permission denied: ./main.py
How to fix? I tried finding out but every fix I found did not work for me.

Import Error with Crypto

After installing all dependencies and the running "python main.py" I get the following error: stitch_utils.py", line 25, in
from crypto import Random
ImportError: No module named crypto

Crypto is installed, and shows up when using "pip freeze" and the folder etc is in my python directory.

This is when running on Windows.
2017-02-16

How use RDP

When i connect to session i send "enableRDP"
But then on windows i open ConnectRemoteComp i put ip:port. But nothing

Keylogger Problem :(

Hi there,
I am having an issue with the keylogger.
i have installed the stitch and all its required packages.
All of the STITCH functionalities are working just fine "like (ls, screenshot, ... etc) "
EXCEPT for the KEYLOGGER...
when i try to dump the keylogger... it downloads either an empty txt file or a txt that contains:
"[ 2018-03-17 11:21:13 ] - Keylogger is now running"
"[ 2018-03-17 11:21:13 ] - Keylogger is now running"
"[ 2018-03-17 11:21:14 ] - Keylogger is now running"

Would you please help me?!

Rat

Herkese Merhabalar
ben rat yazmak ıstıyorum veya hazır rat bulmak ıstıyorum bunu nerden bula bılırım
acıkcana yardıma ıhtıyacım var

Generate Payloads All in One

Hails....
Can i request stitch generate all Payloads in what Os we Use?

Sample im running Linux want make payloads for Windows.... then i just type generate command in Linux too... not must in Windows machine or OsX

Thanks ^_^

PIL is not install.

Collecting PIL==1.1.7 (from -r win_requirements.txt (line 4))
  ERROR: Could not find a version that satisfies the requirement PIL==1.1.7 (fro
m -r win_requirements.txt (line 4)) (from versions: none)
ERROR: No matching distribution found for PIL==1.1.7 (from -r win_requirements.t
xt (line 4))

(stitch) E:\BrDownloads\Stitch-master>pip install PIL
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Ple
ase upgrade your Python as Python 2.7 won't be maintained after that date. A fut
ure version of pip will drop support for Python 2.7. More details about Python 2
 support in pip, can be found at https://pip.pypa.io/en/latest/development/relea
se-process/#python-2-support
Collecting PIL
  ERROR: Could not find a version that satisfies the requirement PIL (from versi
ons: none)
ERROR: No matching distribution found for PIL

PyInstaller==3.2

hello:Stitch-master zhang$ sudo pip install PyInstaller==3.2
The directory '/Users/zhang/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/zhang/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting PyInstaller==3.2
/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/vendor/requests/packages/urllib3/util/ssl.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
SNIMissingWarning
/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/vendor/requests/packages/urllib3/util/ssl.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Downloading PyInstaller-3.2.tar.gz (2.8MB)
100% |████████████████████████████████| 2.8MB 64kB/s
Requirement already satisfied: setuptools in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from PyInstaller==3.2)
Exception:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/commands/install.py", line 324, in run
requirement_set.prepare_files(finder)
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py", line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py", line 666, in _prepare_file
check_dist_requires_python(dist)
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/utils/packaging.py", line 48, in check_dist_requires_python
feed_parser.feed(metadata)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/email/feedparser.py", line 156, in feed
self._input.push(data)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/email/feedparser.py", line 99, in push
data, self._partial = self._partial + data, ''
TypeError: cannot concatenate 'str' and 'NoneType' objects

Installation Troubles (Linux)

When importing the requirements, I'm running into an issue that I saw in a few other Issues.

Could not find a version that satisfies the requirement PIL==1.1.7 (from -r lnx_requirements.txt (line 11)) (from versions: )
No matching distribution found for PIL==1.1.7 (from -r lnx_requirements.txt (line 11))

I was poking around the issue requests, but did not find anything that had the same issue on linux (debian)
Could someone please either drop some advice, or point me towards the same Issue?

Thank you!

Edit: I found #14, but could use some advice/help with that, if possible

Error when pip install -r lnx_requirements.txt on Debian (Latest)

Here is the error

ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ycuy40c_/email_feb9100879314ea3979e6dacef0ece69/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ycuy40c_/email_feb9100879314ea3979e6dacef0ece69/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-fb5hvejm
         cwd: /tmp/pip-install-ycuy40c_/email_feb9100879314ea3979e6dacef0ece69/
    Complete output (11 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 16, in <module>
        import setuptools.version
      File "/usr/lib/python3/dist-packages/setuptools/version.py", line 1, in <module>
        import pkg_resources
      File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 33, in <module>
        import email.parser
      File "/tmp/pip-install-ycuy40c_/email_feb9100879314ea3979e6dacef0ece69/email/parser.py", line 10, in <module>
        from cStringIO import StringIO
    ModuleNotFoundError: No module named 'cStringIO'
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/71/e7/816030d3b0426c130040bd068be62b9213357ed02896f5d9badcf46d1b5f/email-4.0.2.tar.gz#sha256=e2254c9b4e4cf33553f7dfc85b500eea4c3e96733736f38c9dbfc3dcc6303705 (from https://pypi.org/simple/email/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement email==4.0.2
ERROR: No matching distribution found for email==4.0.2

Issue running OS X RATs

When testing the RAT binary files this is the only error I am getting and no connection is made. I hope Im not just missing something stupid here.

Failed to execute script pyi_rth_pkgres
Traceback (most recent call last):
  File "PyInstaller/loader/rthooks/pyi_rth_pkgres.py", line 11, in <module>
  File "/usr/local/lib/python2.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 389, in load_module
    exec(bytecode, module.__dict__)
  File "build/bdist.macosx-10.12-x86_64/egg/pkg_resources/__init__.py", line 70, in <module>
  File "build/bdist.macosx-10.12-x86_64/egg/pkg_resources/extern/__init__.py", line 61, in load_module
ImportError: The 'appdirs' package is required; normally this is bundled with this package so if you get this warning, consult the packager of your distribution.

main.py Line 5 import issue

Here is the error::
Traceback (most recent call last):
File "./main.py", line 5, in
from Application.stitch_cmd import *
File "/Users/Desktop/Stitch-master/Application/stitch_cmd.py", line 5, in
import stitch_winshell
ImportError: No module named 'stitch_winshell'

I am still new to python. I am really liking this project and its potential. I am finding the coding of this project to be a bit easier to digest than a couple of the others. However this issue confuses me.

I hope someone may be able to point me in the right direction.

why python2

it sucks, like really there are always errors coming from the sky with it.

Windows win_requirements.txt

Trying to download the requirements getting an error

$ pip install -r win_requirements.txt
Requirement already satisfied: colorama==0.3.7 in c:\python27\lib\site-packages
(from -r win_requirements.txt (line 1))
Collecting email==4.0.2 (from -r win_requirements.txt (line 2))
  Downloading email-4.0.2.tar.gz (1.2MB)
    100% |################################| 1.2MB 226kB/s
Collecting logging==0.4.9.6 (from -r win_requirements.txt (line 3))
  Downloading logging-0.4.9.6.tar.gz (96kB)
    100% |################################| 102kB 268kB/s
Collecting PIL==1.1.7 (from -r win_requirements.txt (line 4))
  Could not find a version that satisfies the requirement PIL==1.1.7 (from -r wi
n_requirements.txt (line 4)) (from versions: )
No matching distribution found for PIL==1.1.7 (from -r win_requirements.txt (line 4))

As you probably know, PIL is basically dead, and Pillow has replaced it. However I have found out a way to install PIL using a thirdparty:

$ pip install --no-index -f https://dist.plone.org/thirdparty/ -U PIL
Collecting PIL
  Downloading https://dist.plone.org/thirdparty/PIL-1.1.7.tar.gz (499kB)
    100% |################################| 501kB 501kB/s
Installing collected packages: PIL
  Running setup.py install for PIL ... done
Successfully installed PIL

So if one of us can come up with a way to install PIL from the thirdparty, we should be fine.

Also, py2exe fails as well:


$ pip install -r win_requirements.txt
Requirement already satisfied: colorama==0.3.7 in c:\python27\lib\site-packages
(from -r win_requirements.txt (line 1))
Collecting email==4.0.2 (from -r win_requirements.txt (line 2))
  Using cached email-4.0.2.tar.gz
Collecting logging==0.4.9.6 (from -r win_requirements.txt (line 3))
  Using cached logging-0.4.9.6.tar.gz
Requirement already satisfied: PIL==1.1.7 in c:\python27\lib\site-packages\pil (
from -r win_requirements.txt (line 4))
Collecting py2exe==0.6.9 (from -r win_requirements.txt (line 5))
  Could not find a version that satisfies the requirement py2exe==0.6.9 (from -r
 win_requirements.txt (line 5)) (from versions: 0.9.2.0, 0.9.2.2)
No matching distribution found for py2exe==0.6.9 (from -r win_requirements.txt (line 5))

I found a way around this as well by downloading straight from sourceforge. py2exe does not have a 0.6.9 dist package in pypi, only the 3.3 or later one. So in order to download it, you need to download it directly from the source.

$ pip install http://sourceforge.net/projects/py2exe/files/latest/download?source=files
Collecting http://sourceforge.net/projects/py2exe/files/latest/download?source=f
iles
  Downloading http://sourceforge.net/projects/py2exe/files/latest/download?sourc
e=files (149kB)
    100% |################################| 153kB 406kB/s
Installing collected packages: py2exe
  Running setup.py install for py2exe ... done
Successfully installed py2exe-0.6.9

There is also an issue with installing pyhook:

Requirement already satisfied: colorama==0.3.7 in c:\python27\lib\site-packages
(from -r win_requirements.txt (line 1))
Collecting email==4.0.2 (from -r win_requirements.txt (line 2))
  Using cached email-4.0.2.tar.gz
Collecting logging==0.4.9.6 (from -r win_requirements.txt (line 3))
  Using cached logging-0.4.9.6.tar.gz
Requirement already satisfied: PIL==1.1.7 in c:\python27\lib\site-packages\pil (
from -r win_requirements.txt (line 4))
Collecting py2exe==0.6.9 (from -r win_requirements.txt (line 5))
  Could not find a version that satisfies the requirement py2exe==0.6.9 (from -r
 win_requirements.txt (line 5)) (from versions: 0.9.2.0, 0.9.2.2)
No matching distribution found for py2exe==0.6.9 (from -r win_requirements.txt (line 5))

Of course, I've found a fix for this, you have to download the whl file and install it from there though:

$ pip install "C:\python\pyHook-1.5.1-cp27-cp27m-win_amd64.whl"
Processing c:\python\pyhook-1.5.1-cp27-cp27m-wi
n_amd64.whl
Installing collected packages: pyHook
Successfully installed pyHook-1.5.1

After these issues have been resolved, you are able to in install the rest of the requirements without problem. I have an idea on how I can implement a fix for this issue, I'll open a pull request when I have it tested.

IDK whats wrong

[*] Connecting to IP on port 4040...

[!] Exception!

[*] timed out

[-] Disconnected from IP

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.