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

Exception Error #30

Closed
rossiV1 opened this issue Dec 24, 2019 · 11 comments
Closed

Exception Error #30

rossiV1 opened this issue Dec 24, 2019 · 11 comments
Assignees
Labels
bug Something isn't working confirmed

Comments

@rossiV1
Copy link

rossiV1 commented Dec 24, 2019

Empire Version

[Version] 3.0 BC-Security Fork

OS Information (Linux flavor, Python version)

Ubuntu 18.04, Python 3.6.9

Expected behavior and description of the error, including any actions taken immediately prior to the error. The more detail the better.

usestager windows/macro when execute should output a macro file

but when execute above, it shows error Exception: module 'string' has no attribute 'letters' and return to main empire page

Screenshot of error, embedded text output, or Pastebin link to the error

empire1
Screenshot from 2019-12-24 13-15-09

Any additional information

I just updated empire from the previous version to this new version. the previous version works well when using the macro stager module.

@rossiV1
Copy link
Author

rossiV1 commented Dec 24, 2019

i found error when uploading a file using to agent that is connected when using the commandupload

Error is: [!] Exception: 'utf-8' codec can't decode byte 0x90 in position 2: invalid start byte

Cx01N added a commit that referenced this issue Dec 24, 2019
Cx01N added a commit that referenced this issue Dec 24, 2019
@Cx01N
Copy link
Member

Cx01N commented Dec 24, 2019

We added the updates to 3.0-bug-fixes for testing before rolling it out. We aren't seeing the issues anymore, so let us know if it still present.

@Cx01N Cx01N added bug Something isn't working confirmed labels Dec 24, 2019
@Invoke-Mimikatz
Copy link

Invoke-Mimikatz commented Dec 25, 2019

I'm not sure if this belongs in a new issue or not, but it seems similar enough to the ones above. The theme seems to be a difference between string and byte array[] and how Empire handles them. Can you guys reproduce this? Running Kali Linux and Empire 3.0 via Python3.

str_byte

image

@rossiV1
Copy link
Author

rossiV1 commented Dec 25, 2019

hi again. i tried the new update with a fresh install server. cannot load empire due to this error

root@server:/opt/Empire# ./empire
Traceback (most recent call last):
File "./empire", line 1424, in
main = empire.MainMenu(args=args)
File "/opt/Empire/lib/common/empire.py", line 97, in init
(self.isroot, self.installPath, self.ipWhiteList, self.ipBlackList, self.obfuscate, self.obfuscateCommand) = helpers.get_config('rootuser, install_path,ip_whitelist,ip_blacklist,obfuscate,obfuscate_command')
File "/opt/Empire/lib/common/helpers.py", line 606, in get_config
cur.execute("ALTER TABLE config ADD COLUMN %s BLOB" % (field))
sqlite3.OperationalError: no such table: config
root@server:/opt/Empire#

detail of server is:
fresh install ubuntu 18.04
python version: 3.6.9 and 2.7.17

i tried both ./empire and python2 ./empire but got the error as above

@rossiV1
Copy link
Author

rossiV1 commented Dec 25, 2019

hi again. i tried the new update with a fresh install server. cannot load empire due to this error

root@server:/opt/Empire# ./empire
Traceback (most recent call last):
File "./empire", line 1424, in
main = empire.MainMenu(args=args)
File "/opt/Empire/lib/common/empire.py", line 97, in init
(self.isroot, self.installPath, self.ipWhiteList, self.ipBlackList, self.obfuscate, self.obfuscateCommand) = helpers.get_config('rootuser, install_path,ip_whitelist,ip_blacklist,obfuscate,obfuscate_command')
File "/opt/Empire/lib/common/helpers.py", line 606, in get_config
cur.execute("ALTER TABLE config ADD COLUMN %s BLOB" % (field))
sqlite3.OperationalError: no such table: config
root@server:/opt/Empire#

detail of server is:
fresh install ubuntu 18.04
python version: 3.6.9 and 2.7.17

i tried both ./empire and python2 ./empire but got the error as above

sorry, i fixed this by using the command ./setup/reset.sh and install all the other dependencies.

@rossiV1
Copy link
Author

rossiV1 commented Dec 25, 2019

We added the updates to 3.0-bug-fixes for testing before rolling it out. We aren't seeing the issues anymore, so let us know if it still present.

hello. i am still seing the bug when using the windows/macro.

currently using fresh install ubuntu 18.04

@rossiV1
Copy link
Author

rossiV1 commented Dec 25, 2019

and the error when upload file is still there.

@Cx01N
Copy link
Member

Cx01N commented Dec 25, 2019

and the error when upload file is still there.

You may still be on the 3.0 branch instead of the hotfixes branch. If you run the following commands from the Empire folder.

git checkout 3.0-bug-fixes
git pull
./setup/reset.sh

Which version does it say you are running?

@rossiV1
Copy link
Author

rossiV1 commented Dec 25, 2019

and the error when upload file is still there.

You may still be on the 3.0 branch instead of the hotfixes branch. If you run the following commands from the Empire folder.

git checkout 3.0-bug-fixes
git pull
./setup/reset.sh

Which version does it say you are running?

ahhh sorry. i did not pull the correct branch. thank you for the info above

@rossiV1
Copy link
Author

rossiV1 commented Dec 25, 2019

i found error when uploading a file using to agent that is connected when using the commandupload

Error is: [!] Exception: 'utf-8' codec can't decode byte 0x90 in position 2: invalid start byte

i realised the error will come when trying to upload a file that is bigger in size. when i upload a normal txt file, it can manage to upload.
but when i try to upload a exe file, it will show this error [!] Exception: 'utf-8' codec can't decode byte 0x90 in position 2: invalid start byte

Cx01N added a commit that referenced this issue Dec 26, 2019
@Cx01N
Copy link
Member

Cx01N commented Dec 26, 2019

i found error when uploading a file using to agent that is connected when using the commandupload
Error is: [!] Exception: 'utf-8' codec can't decode byte 0x90 in position 2: invalid start byte

i realised the error will come when trying to upload a file that is bigger in size. when i upload a normal txt file, it can manage to upload.
but when i try to upload a exe file, it will show this error [!] Exception: 'utf-8' codec can't decode byte 0x90 in position 2: invalid start byte

The check for file sizes larger than 1 MB should now work on the 3.0-bug-fixes branch and you will receive this message when trying to upload large files.
[!] File size is too large. Upload limit is 1MB.

Thank you for working through this issue with us.

@Hubbl3 Hubbl3 closed this as completed Dec 27, 2019
@rossiV1 rossiV1 mentioned this issue Jan 3, 2020
vinnybod added a commit that referenced this issue Feb 21, 2021
* fixed encoding issue where large modules broke malleable agents w/netbios

* updated submodules

* Updated changelog and version

* fixed changelog formatting

Co-authored-by: Vincent Rose <vrose04@gmail.com>
vinnybod added a commit that referenced this issue Apr 8, 2021
* fixed encoding issue where large modules broke malleable agents w/netbios

* updated submodules

* Updated changelog and version

* fixed changelog formatting

Co-authored-by: Vincent Rose <vrose04@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working confirmed
Projects
None yet
Development

No branches or pull requests

4 participants