ahmedkhlief/Ninja

SyntaxError: invalid syntax

bart3nder opened this issue · 5 comments

hi brother, happy ramadan. thanks for such a great tool, it will really help me. in last version (1.1) I had a problem about crypto
happily in this version I didn't face it but I have another problem. can u help me in fixing it ?

└─$ python start_campaign.py
Urls will be used in this campaign
raw_payload='/interface'
b52_payload='/jbossws'
b64_stager='/ws'
b52_stager='/inspection'
hjf_payload='/operations'
b64_payload='/ServiceDefinition'
hjfs_payload='/services'
sct_payload='/wsgw'
hta_payload='/extwsdl'
register_url='/svce'
download_url='/admin'
upload_url='/uddisoap'
image_url='/xmethods'
command_url='/default'
result_url='/names'
modules_url='/manual'
Enter a DN/IP:port for this campaign 192.168.1.33:5050
Traceback (most recent call last):
File "start_campaign.py", line 153, in
get_ip()
File "start_campaign.py", line 63, in get_ip
CC = input('Enter a DN/IP:port for this campaign ')
File "", line 1
192.168.1.33:5050
^
SyntaxError: invalid syntax

plus , can u help me about how can I use ngrok with this ? I will be very thankful if u note something about that too !

@ahmedkhlief, When I start ninja, it generates my payload and writes to payload folder but framework exits afterwards with a "Segmentation fault (core dumped)" error

I've tried restarting but same issue. Please any help is appreciated. I might be doing something wrong

hi brother, happy ramadan. thanks for such a great tool, it will really help me. in last version (1.1) I had a problem about crypto
happily in this version I didn't face it but I have another problem. can u help me in fixing it ?

└─$ python start_campaign.py
Urls will be used in this campaign
raw_payload='/interface'
b52_payload='/jbossws'
b64_stager='/ws'
b52_stager='/inspection'
hjf_payload='/operations'
b64_payload='/ServiceDefinition'
hjfs_payload='/services'
sct_payload='/wsgw'
hta_payload='/extwsdl'
register_url='/svce'
download_url='/admin'
upload_url='/uddisoap'
image_url='/xmethods'
command_url='/default'
result_url='/names'
modules_url='/manual'
Enter a DN/IP:port for this campaign 192.168.1.33:5050
Traceback (most recent call last): File "start_campaign.py", line 153, in get_ip() File "start_campaign.py", line 63, in get_ip CC = input('Enter a DN/IP:port for this campaign ') File "", line 1 192.168.1.33:5050 ^ SyntaxError: invalid syntax

plus , can u help me about how can I use ngrok with this ? I will be very thankful if u note something about that too !

@iwhy9 Ramadan Kareem bro . please do clean install by clonning the repo and retest , if the same issue persist send me the start_campaign.py file .

regarding ngrok , i tested it and its working without issue .just use the forwarding URL in the IP and port when start the campaign .

@vernegogh please use this command and provide me your output .
python3 -m pip show donut-shellcode

Thanks for your response sir. I got it working already. One small issue i am facing however, is working with the payloads.
For example, when I use the Mshta link generated, the target machine connects and requests for the hta payload. How do I serve up the payload please?
I know this may sound really dumb but I have visited the posted official links, but none really goes indepth about working with the payloads. Could you help me or point me to an article that could help me understand working with Ninja payloads please?

hello again brother
i test it on another system, fortunately it is fixed now, thank you