-
-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
software not exit the loop if find a null in shellcode #80
Comments
#81 is fix for that xor_0x41414141 but as you said something like |
Maybe we can alert user about couldn't use this code for encoding and automaticly generate shellcode with another value [near the real value] for user, near value could generate like:
or any idea? |
@Ali-Razmjoo I tried that for file create and the code is increasing much and we have to do it for all shellcodes like exec, etc., So my suggestion was to ask user only to enter some other value if null is found? or maybe we can give alert when there is null byte and use random encoder? @CodeMaxx Any suggestions? |
I believe we should ask user to give some other value for encoding. The user might prefer certain values over other. |
@Ali-Razmjoo @Pratik151 Anything finalised about this? |
I think we should output the shellcode as is and just give a warning to the user about the null bytes. If he doesn't want them then he can try again ith some other value for encoding because some string functions copy the null bytes too without terminating the string at them. |
I was think what if a user get this warning 3 times ?! user will not use this software again. we need to find a better way, maybe enabling verbose mod and show them something to understand where is the problem. |
Hello friends let's come back here to make a decision about solving this bug, I think for now we can warn the users about input value, but it's not solving the problem, just covering it. any idea ? |
Maybe we can give a warning such as NULL BYTES FOUND
Then maybe we can ouput shellcodes for |
I think we need to split the values first and find where is the null byte found, for example if our values are:
and we xor this values with
and then warn users, which we change value onces because of null was created. |
hello friends,
I release that when we use a specific value for encoding shellcodes example( sub/xor/add_yourvalue ) it could make a null and there is
if
in script it tries again if find\x00
in software.for example run this command
zsc.py -p windows_x86/exec/xor_0x41414141 -i calc.exe
, we need to check and if there is a null, return an error, also there is more, inc and dec also could make the nulls,'%x'%(int('0x4f5ec401',16) - int('0x1',16)) '4f5ec400'
or
we need to return error and tell user this value make nulls or change value +1 or -1
@Pratik151 please notice that until you adding encoder and we not fix it
The text was updated successfully, but these errors were encountered: