This is raocket
This commit is contained in:
parent
236cd0b8cb
commit
c57430937b
1
12345.sh
1
12345.sh
|
@ -39,6 +39,7 @@ while true; do
|
||||||
|
|
||||||
# REPLACE myIP in http response template
|
# REPLACE myIP in http response template
|
||||||
sed "s~127.0.0.1:12345~$myIP:$PORT~g" $HOME/.zen/Astroport.ONE/templates/index.http > ~/.zen/tmp/myIP.http.${MOATS}
|
sed "s~127.0.0.1:12345~$myIP:$PORT~g" $HOME/.zen/Astroport.ONE/templates/index.http > ~/.zen/tmp/myIP.http.${MOATS}
|
||||||
|
sed -i "s~127.0.0.1~$myIP~g" ~/.zen/tmp/myIP.http.${MOATS}
|
||||||
|
|
||||||
## LAUNCHING
|
## LAUNCHING
|
||||||
URL=$(cat $HOME/.zen/tmp/myIP.http.${MOATS} | nc -l -p 1234 -q 1 | grep '^GET' | cut -d ' ' -f2 | cut -d '?' -f2)
|
URL=$(cat $HOME/.zen/tmp/myIP.http.${MOATS} | nc -l -p 1234 -q 1 | grep '^GET' | cut -d ' ' -f2 | cut -d '?' -f2)
|
||||||
|
|
|
@ -6,12 +6,16 @@ Content-Type: text/html; charset=UTF-8
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="refresh" content="3; url='http://127.0.0.1:12345'" />
|
<meta http-equiv="refresh" content="3; url='http://127.0.0.1:12345'" />
|
||||||
|
<style>
|
||||||
|
#wait {
|
||||||
|
width:100%;
|
||||||
|
height:100%;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>ASTROPORT</h1>
|
<h1>ASTROPORT</h1>
|
||||||
<h2>Astronaute nous créons votre TW .... </h2>
|
<h2>Astronaute Contact</h2>
|
||||||
<form action = "http://127.0.0.1:12345" method = "GET">
|
<img src='http://127.0.0.1:8080/ipfs/QmS4xmYNpto1ce65VBPJsDjiaoupmxTTE7o5RD2zrnJcVb/QRCode.gif' id='wait'/>
|
||||||
<input type='submit' value='PATIENTEZ SVP'>
|
|
||||||
</form>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue