Skip to main content

All Questions

Tagged with
0 votes
1 answer
1k views

netcat / nc / telnet perform math on received data then output

I am not an expert on bash so sorry in advance. For my high school CTF competition, I have to read in 3 numbers, perform some arithmetic on them, then output the value back to the server. In ...
Peter Stenger's user avatar
0 votes
1 answer
455 views

Keep track of successful pin in Bandit CTF 24 to 25 [duplicate]

I am doing the bandit wargame of OverTheWire and am trying to pass level 24 -> 25. I successfully got the password with the script below but I'd like to recover the successful pin. I tried ...
Sileo's user avatar
  • 111
1 vote
3 answers
2k views

Failing IF in a WHILE loop in BASH script that checks for open 22 ports

Im trying to create a rather basic script to run through a list of servers and check if the SSH port is open using nc. I've tried a few different ways, but can't seem to get this to work. I am ...
saleetzo's user avatar
  • 590
3 votes
1 answer
1k views

'netcat -e' not relaying stdout

I'm using netcat to create a backdoor running a python script with the following command: netcat -l -p 1234 -e 'python /script.py' then I'm connecting to the backdoor with another shell using: ...
Mazen's user avatar
  • 33