Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
241ee2385f | ||
|
|
6beee1e2ba | ||
|
|
5d89ac6417 |
@ -1,4 +1,3 @@
|
|||||||
RemoteIp=10.10.10.3:1666
|
|
||||||
LocalPassword='Evil@MonitoR-666'
|
LocalPassword='Evil@MonitoR-666'
|
||||||
Crypted=no
|
Crypted=no
|
||||||
Rotation=1
|
Rotation=1
|
||||||
|
|||||||
@ -23,7 +23,7 @@ CheckAllEnd() {
|
|||||||
echo '
|
echo '
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>MoniThor on '${RemoteIp}' </title>
|
<title>MoniThor on '$(hostname)' </title>
|
||||||
<meta http-equiv="refresh" content="1" />
|
<meta http-equiv="refresh" content="1" />
|
||||||
</head>
|
</head>
|
||||||
<title>MONITHOR</title>
|
<title>MONITHOR</title>
|
||||||
|
|||||||
@ -8,7 +8,7 @@ python3 -m http.server ${1} &
|
|||||||
|
|
||||||
echo '<html>
|
echo '<html>
|
||||||
<head>
|
<head>
|
||||||
<title>MoniThor on '${RemoteIp}' </title>
|
<title>MoniThor on '$(hostname)' </title>
|
||||||
<meta http-equiv="refresh" content="1" />
|
<meta http-equiv="refresh" content="1" />
|
||||||
</head>
|
</head>
|
||||||
<title>MONITHOR</title>
|
<title>MONITHOR</title>
|
||||||
|
|||||||
@ -8,7 +8,7 @@ source /etc/monithor-server/service.cfg
|
|||||||
Exit () {
|
Exit () {
|
||||||
|
|
||||||
[[ "$1" == "root" ]] && echo "You have to be root ..."
|
[[ "$1" == "root" ]] && echo "You have to be root ..."
|
||||||
[[ "$1" == "Config" ]] && echo "Ip configuration will failed"
|
#[[ "$1" == "Config" ]] && echo "Ip configuration will failed"
|
||||||
|
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
@ -18,7 +18,7 @@ if [[ $(id -u) != "0" ]]
|
|||||||
Exit root
|
Exit root
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[[ -z $(ifconfig | grep inet | awk '{print $2}' | grep $RemoteIp) ]] && Exit Config
|
#[[ -z $(ifconfig | grep inet | awk '{print $2}' | grep $RemoteIp) ]] && Exit Config
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user