patrolserver / bashscanner Goto Github PK
View Code? Open in Web Editor NEWA fast way to scan your server for outdated software and potential exploits.
Home Page: https://patrolserver.com
A fast way to scan your server for outdated software and potential exploits.
Home Page: https://patrolserver.com
PatrolServer.com at your service.
I'm starting...
Could not determine your hostname.
Please enter the hostname of this server: ymc
Could not determine your hostname.
Please enter the hostname of this server:
How the deal with this issue ??
any idea???
Hi
I tried running the scanner as directed in the README, but I get this:
$ bash patrolserver
Error reading signature file /tmp/tmp.OudAzcpRZx
Verification of PatrolServer code failed, somebody tried to edit our code without proper signing
[mdinolfo@xithix bashscanner]$ ./patrolserver
> Hi mdinolfo,
> PatrolServer.com at your service.
> I'm starting...
/tmp/tmp.GZLB38FHPm: line 918: host: command not found
> Could not determine your hostname.
Please enter the hostname of this server: xithix
/tmp/tmp.GZLB38FHPm: line 918: host: command not found
> Could not determine your hostname.
Please enter the hostname of this server:
The command hostname is present, and resolves to what I know my host as:
[mdinolfo@xithix bashscanner]$ hostname
xithix
Hi,
I'm attempting to test the scanner, but running into the following error:
# wget https://raw.githubusercontent.com/PatrolServer/bash-scanner/master/patrolserver
--2017-05-04 15:18:28-- https://raw.githubusercontent.com/PatrolServer/bash-scanner/master/patrolserver
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.112.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.112.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2633 (2.6K) [text/plain]
Saving to: ‘patrolserver’
patrolserver 100%[==========================================================================================================>] 2.57K --.-KB/s in 0s
2017-05-04 15:18:28 (87.8 MB/s) - ‘patrolserver’ saved [2633/2633]
# bash patrolserver
> Hi root,
> PatrolServer.com at your service.
> I'm starting...
> You can use this tool 5 times without account.
> Do you want to create an account (y/n)? n
> Internal error, could not create the server online
# uname -a
Linux feedmybeta.com 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u4 (2016-02-29) x86_64 GNU/Linux
jeff@casavant:~$ bash patrolserver
> Hi jeff,
> PatrolServer.com at your service.
> I'm starting...
> Your hostname (casavant.org) doesn't resolve to this IP.
Please enter the hostname that resolved to this ip:
This loops indefinitely, with none of my domain names working. Here's the relevant parts of my setup:
jeff@casavant:~$ ifconfig
venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:127.0.0.2 P-t-P:127.0.0.2 Bcast:0.0.0.0 Mask:255.255.255.255
inet6 addr: 2a02:748:a800:ca7:ea75:b12d:25:3496/112 Scope:Global
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:11373164 errors:0 dropped:0 overruns:0 frame:0
TX packets:80786147 errors:0 dropped:2 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1185538195 (1.1 GB) TX bytes:118959092724 (118.9 GB)
venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:162.252.175.119 P-t-P:162.252.175.119 Bcast:162.252.175.119 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
jeff@casavant:~$ dig casavant.org
; <<>> DiG 9.9.5-3ubuntu0.4-Ubuntu <<>> casavant.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40812
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;casavant.org. IN A
;; ANSWER SECTION:
casavant.org. 9934 IN CNAME jeffcasavant.com.
jeffcasavant.com. 9934 IN A 162.252.175.119
;; Query time: 11 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Tue Sep 08 20:26:33 EDT 2015
;; MSG SIZE rcvd: 87
Here are the results of the functions used in TestHostname
to determine the IP and external IP:
jeff@casavant:~$ dig +time=1 +tries=1 +retry=1 +short myip.opendns.com @resolver1.opendns.com
162.252.175.119
jeff@casavant:~$ dig @8.8.8.8 +short casavant.org
jeffcasavant.com.
162.252.175.119
jeff@casavant:~$ wget -qO- icanhazip.com
2a02:748:a800:ca7:ea75:b12d:25:3496
jeff@casavant:~$ host casavant.org | cut -d' ' -f4
alias
162.252.175.119
address
handled
Seems there are issues related to IPv6 as well as to my CNAME setup. Thoughts on how to remedy this?
I tried to run the script in several hosts executing:
$ wget https://raw.githubusercontent.com/PatrolServer/bash-scanner/master/patrolserver
and then
$ bash patrolserver
Could not determine your hostname.
Please enter the hostname of this server:
I enter it as much as 3 times and then the script finishes with "> Could not determine hostname."
-bash-3.00# bash compiled.sh
> Hi root,
> PatrolServer.com at your service.
> I'm starting...
compiled.sh: line 547: ENCODED+=c: command not found
compiled.sh: line 547: ENCODED+=p: command not found
compiled.sh: line 547: ENCODED+=a: command not found
compiled.sh: line 547: ENCODED+=n: command not found
compiled.sh: line 547: ENCODED+=e: command not found
compiled.sh: line 547: ENCODED+=l: command not found
compiled.sh: line 547: ENCODED+=.: command not found
compiled.sh: line 547: ENCODED+=x: command not found
compiled.sh: line 547: ENCODED+=l: command not found
compiled.sh: line 547: ENCODED+=-: command not found
compiled.sh: line 547: ENCODED+=i: command not found
compiled.sh: line 547: ENCODED+=s: command not found
compiled.sh: line 547: ENCODED+=.: command not found
compiled.sh: line 547: ENCODED+=n: command not found
compiled.sh: line 547: ENCODED+=e: command not found
compiled.sh: line 547: ENCODED+=t: command not found
> patrolserver.com is not reachable, contact us (3)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.