Raspberry-vpn-backdoor: Unterschied zwischen den Versionen

Aus xinux.net
Zur Navigation springen Zur Suche springen
Zeile 1: Zeile 1:
 
=raspberrypy=
 
=raspberrypy=
 +
*/usr/local/sbin/tunnel-init
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
#!/bin/bash
 
#!/bin/bash

Version vom 28. September 2021, 08:58 Uhr

raspberrypy

  • /usr/local/sbin/tunnel-init
#!/bin/bash
LOG=/var/log/vpn-hack.log
REMOTE=bortus.tuxmen.de
IP=$(ifconfig eth0 | grep "inet\>" | awk '{ print $2"/"$4}')
echo $IP > /tmp/remote-ip

if ! ps -alx | grep $REMOTE | grep -v grep > /dev/null 2>&1
then
date >> $LOG
echo ssh -4 -f -N -p 8472 $REMOTE -R 9922:localhost:22 >> $LOG
ssh -4 -f -N -p 8472 $REMOTE -R 9922:localhost:22
scp -P 8472 /tmp/remote-ip $REMOTE:/tmp/ >> $LOG
fi