Skip to content
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

local variable 'crypt' referenced before assignment #4

Open
exc0rk opened this issue Jun 4, 2020 · 1 comment
Open

local variable 'crypt' referenced before assignment #4

exc0rk opened this issue Jun 4, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@exc0rk
Copy link

exc0rk commented Jun 4, 2020

Hi,

When trying to use the script, I run into the following error that only appears when using the --jmp option. Please see following output


kali@kali:/opt/darkarmour$ ./darkarmour.py -f evil.exe --encrypt XOR  --loop 5 --jmp -o notevil.exe
    
[i] Started armouring evil.exe (73802 bytes)
[i] Configuring to use JMP loader
[i] Begining encryption via XOR
Traceback (most recent call last): key (0)                              
  File "./darkarmour.py", line 116, in <module>
    darkarmour.run(vars(ap.parse_args()))
  File "./darkarmour.py", line 96, in run
    self._do_crypt()
  File "./darkarmour.py", line 90, in _do_crypt
    self._do_jmp()
  File "./darkarmour.py", line 43, in _do_jmp
    bytes, length, keys_used = self._do_encrypt()
  File "./darkarmour.py", line 33, in _do_encrypt
    bytes, len, key = crypt.crypt_file(True, crypt.key, infile=self.in_file)
UnboundLocalError: local variable 'crypt' referenced before assignment

@bats3c
Copy link
Owner

bats3c commented Jun 5, 2020

This is a bug, I will fix it in the next few days

@bats3c bats3c added the bug Something isn't working label Jun 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants