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

A.S.E - Advanced_System_Exfiltration #226

Merged
merged 1 commit into from
May 24, 2024

Conversation

LulzAnarchyAnon
Copy link
Contributor

@LulzAnarchyAnon LulzAnarchyAnon commented May 19, 2024

This slow, and steady staged payload takes it's time and gleans detailed system information using powershell, Ducky script and notepad. First hidden powershells are opened in stages, and payloads are deployed to collect the target computers system information, Then a notepad.txt file named loot is created with all the gleaned information, and hidden in the Public Users folder C:\Users\Public\loot.txt The loot is then exfiltrated using a Discord webhook. In the final stage of the payload the loot.txt file, the recycling bin contents, the temp folder contents and powershell history are all deleted.

@LulzAnarchyAnon LulzAnarchyAnon changed the title Create A.S.E - Advanced_System_Exfiltration A.S.E - Advanced_System_Exfiltration May 19, 2024
@kalanihelekunihi
Copy link
Collaborator

It is functionally complete, compiles properly, and will run.

However, I would suggest some improvements that will help make it cleaner and more readable.
You are using the Discord Webhook interface to exfiltrate data, however the address and api key to do so is buried deep in your script. This would be a good candidate for using a variable at the top of your DuckyScript file.

There is also a lot of duplicate blocks of code with only simple changes. This would be a good candidate to create a function with a parameter. That way, all the unique code is only stored once, making it easier to maintain and adjust as needed, and then you simply call it via a function call like: gatherLoot(IP Address)

There are quite a few places where you type out a string, and then have a single command “ENTER” on the next line.
By using the syntax “STRINGLN”, it will type the string, followed by ENTER automatically, and generally make your scripts a little easier.

Finally, there are a lot of places that you could benefit by using one of the BLOCK commands, which allow you to do multi-line text as though it’s still a single command.

Example:
REM_BLOCK
A
Multi-Line
Comment
END_REM

These also work for STRING, STRINGLN, and a variety of other commands. I personally enjoy using these as it allows for direct copy/paste of terminal commands for easier troubleshooting.

There are examples to this in the Help menu, and our Wiki.

Nothing that would prevent your payload from being accepted, but things that would likely make your life easier in the future, along with potentially letting you re-use some of this code for future scripts.

@kalanihelekunihi kalanihelekunihi merged commit 2565d45 into hak5:master May 24, 2024
@LulzAnarchyAnon
Copy link
Contributor Author

LulzAnarchyAnon commented May 24, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants