Giter Site home page Giter Site logo

evilbytecode / powershell-token-grabber Goto Github PK

View Code? Open in Web Editor NEW

This project forked from childrenofyahweh/kematian-stealer

0.0 0.0 0.0 601 KB

discord token grabber in powershell

License: MIT License

JavaScript 19.93% Go 34.54% PowerShell 43.89% Batchfile 1.64%

powershell-token-grabber's Introduction



PowerShell Token Grabber

Malware targeting Windows systems that utilizes PowerShell for the purpose of data exfiltration. All information collected is sent using Discord webhooks.


Important

As of 2024-02-14, PowerShell-Token-Grabber is detected by AMSI (malware-encyclopedia). You need to obfuscate the generated payload in order to use it effectively.

Usage

  • Create a Webhook on your Discord Server. I recommend creating a new server.
  • After creating a server go to Edit channel > Integrations > Webhooks > Create Webhook
  • Copy the Webhook URL
  • Download main.ps1
  • Open main.ps1 and replace YOUR_WEBHOOK_HERE in line 30 with your webhook or use the builder.

Want to obfuscate the code ?

Use Invoke-Obfuscation.
Or use Somalifuscator for .bat files

Screenshots

๐Ÿ”จ Builder

GUI

Builder Features

  • ๐Ÿ”ธ Obfuscation of BAT and PS1 files
  • ๐Ÿ”ฉ Compilation of Exe Files
  • ๐Ÿ’‰ Pump/Inject the output exe file with zero-filled bytes

๐Ÿ”ท Webhook Data

screenshot

data

Features

  • GUI Builder
  • Anti-Kill (Terminating the grabber will result in a system crash, indicated by a BSoD blue screen of death).
  • Mutex (single instance)
  • Force UAC
  • Antivirus Evasion: Disables AMSI , excluded from Windows Defender and blocks access to antivirus websites in hosts file.
  • Anti-Analysis VMWare, VirtualBox, Sandboxes, Emulators, Debuggers, Virustotal, Any.run
  • Persistence via Task Scheduler
  • Extracts WiFi Passwords
  • Files Stealer 2fa, backupcodes, seedphrases, passwords, privatekeys, etc.
  • ๐Ÿ“ท Webcam & Desktop Screenshots
  • Session Stealers

    Messaging

    Gaming

  • VPN Clients
  • Crypto Wallets

    Armory | Atomic | Bitcoin | Bytecoin | Coinomi | Dash | Electrum | Ethereum | Exodus | Guarda | Jaxx | Litecoin | Monero | Zcash

  • Browsers (Brave, Chrome, Firefox, Microsoft Edge, Thunderbird etc.)
    • ๐Ÿ”‘ Passwords
    • ๐Ÿช Cookies
    • ๐Ÿ“œ History
  • Extracts Discord Token
  • Get System Information (Version, CPU, DISK, GPU, RAM, IP, Installed Apps etc.)
  • List of Installed Applications
  • List of Installed Antiviruses
  • List of all Network Adapters
  • List of Apps that Run On Startup
  • List of Running Services & Applications
  • All Network Information
  • Extracts Product Key
  • Self-Destructs After Execution (optional)

Telegram Session Stealer Usage :

After the exfiltrated data is uploaded to your discord webhook, download the compressed file KDOT.zip, extract it on your PC, inside that folder there will also be another subfolder Messaging Sessions , inside this subfolder you will find the Telegram folder. Now, copy the tdata folder from Telegram folder and paste it in the directory below:

%userprofile%\AppData\Roaming\Telegram Desktop

Before pasting the tdata folder, ensure that you have deleted the existing tdata folder on your PC.

image

Note

The other session stealers can be utilized by applying the technique above

๐Ÿ—‘ Uninstaller (Removes the Scheduled Task, Script Folder, ExclusionPaths and Resets Hosts File)

  • Open a new Elevated Powershell Console then copy & paste the contents below
$ErrorActionPreference = "SilentlyContinue"
function Cleanup {
  Unregister-ScheduledTask -TaskName "KDOT" -Confirm:$False
  Remove-Item -Path "$env:appdata\KDOT" -force -recurse
  Remove-MpPreference -ExclusionPath "$env:APPDATA\KDOT"
  Remove-MpPreference -ExclusionPath "$env:LOCALAPPDATA\Temp"
$resethostsfile = @'
# Copyright (c) 1993-2006 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host
# localhost name resolution is handle within DNS itself.
#       127.0.0.1       localhost
#       ::1             localhost
'@
  [IO.File]::WriteAllText("$env:windir\System32\Drivers\etc\hosts", $resethostsfile)
  Write-Host "[~] Successfully Uninstalled !" -ForegroundColor Green
}
Cleanup

Need Help?

Bug Reports & Suggestions

Found a bug? Have an idea? Let me know here, Please provide a detailed explanation of the expected behavior, actual behavior, and steps to reproduce, or what you want to see and how it could be done. You can be a small part of this project!

License

This project is licensed under the MIT License - see the LICENSE file for details

Disclaimer

I, the creator, am not responsible for any actions, and or damages, caused by this software. You bear the full responsibility of your actions and acknowledge that this tool was created for educational purposes only. This tool's main purpose is NOT to be used maliciously, or on any system that you do not own, or have the right to use. By using this software, you automatically agree to the above.

References

YARA Rule Info
Name : SUSP_PS1_PowerShell_Recon_Mar23_1
RULE Hash : eda1df8e3375891644fe9cac90852b0d
Description : Detects suspicious PowerShell code that performs reconnaissance tasks
Rule Link : https://valhalla.nextron-systems.com/info/rule/SUSP_PS1_PowerShell_Recon_Mar23_1
Rule Author : Florian Roth

Credits

Back to Top

powershell-token-grabber's People

Contributors

kdot227 avatar chainski avatar evilbytecode avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.