ReverseShell | simple PowerShell script that we can use | Command Line Interface library
kandi X-RAY | ReverseShell Summary
kandi X-RAY | ReverseShell Summary
A simple PowerShell script that we can use for easing the process of creating a reverse shell and automating Meterpreter update
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ReverseShell
ReverseShell Key Features
ReverseShell Examples and Code Snippets
Community Discussions
Trending Discussions on ReverseShell
QUESTION
So, I'm trying to write a bash script to phone home with a reverse shell to a certain IP using bash if the program isn't already running. It's supposed to check every 20 seconds to see if the process is alive, and if it isn't, it'll execute the shell. However, I get the error ./ReverseShell.sh: line 9: [: ps -ef | grep "bash -i" | grep -v grep | wc -l: integer expression expected
When I attempt to execute my program. This is because I'm using -eq in my if statement. When I replace -eq with =, the program compiles, but it evaluates to 0 no matter what.
What am I doing wrong? My code is below.
...ANSWER
Answered 2018-Feb-13 at 07:32There is a small change required in your code. You have to use tilt "`" instead of single quotes "''" inside if.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ReverseShell
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page