Skip to content

Instantly share code, notes, and snippets.

@Visgean
Created August 27, 2011 22:28
Show Gist options
  • Select an option

  • Save Visgean/1175947 to your computer and use it in GitHub Desktop.

Select an option

Save Visgean/1175947 to your computer and use it in GitHub Desktop.
My server was hacked today, I lost ssh control, altough i was able to create tunnel, so I bruteforced server.
#!/bin/bash
for i in {2300..3000}
do
echo $i
ssh -f -N -n -D $i regulus
done
# Done, server keeps saying:
# ssh_exchange_identification: Connection closed by remote host
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment