Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Bug Fixed - Bad Character Error : Invalid bad character detected. #9

Open
b3mb4m opened this issue Mar 5, 2016 · 2 comments
Open

Comments

@b3mb4m
Copy link

b3mb4m commented Mar 5, 2016

C:\Users\r00t\Desktop\Veil-Ordnance-master\Veil-Ordnance-master>python Veil-Ordnance.py -p rev_https --ip 192.168.63.149 --port 443 -e xor -b \x00

[*] Bad Character Error: Invalid bad character detected.
[*] Bad Character Error: Please provide bad characters in \x00\x01... format.

Ref : https://www.veil-framework.com/veil-ordnance-fast-shellcode-generation/

So .. after little research i figure out what's the problem.Problem is related "split" raw strings, when you split 'x' on badchar list will working like that;

bad_characters = bad_characters.split('x')
print bad_characters
//['\\', '00'] <-- backslash allways be there, that's the problem of fail.

I did change it like this and its work now,

bad_characters = bad_characters.split ("\\x")
bad_characters = bad_characters[1:]

-Tested on windows 7
-File : xor.py [line 70]

Cheers :)

@ChrisTruncer
Copy link
Member

Hey,

First off, thanks for not only submitting a potential bug, but giving the fix. That's awesome! :)

I tried actually running the same command, and it completed for me without an error. I'm posting a screenshot here. So at the moment, I'm a little confused as to why you are getting an error because I can't get it to error out on my end at the moment.

veil ordnance screenshot

@b3mb4m
Copy link
Author

b3mb4m commented Mar 7, 2016

Yea i thought that was about windows.Or maybe python 2x, not sure.Did you try on windows ? Coz my test computer was w7.(Its working flawless now)

OS : Microsoft Windows 7 Ultimate
VER: 6.1.7601 Service Pack 1 Yapı 7601

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants