-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinfoget.sh
More file actions
60 lines (41 loc) · 949 Bytes
/
infoget.sh
File metadata and controls
60 lines (41 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/bash
clear
echo "Logged in user:" $USER
echo
echo -n "Distribution and kernel version:"
cat /etc/issue | cut -c1-13
echo -n "uname results: "
uname -a
echo
echo "Shellsock Bug Vulnerability"
env x='() { :;}; echo vulnerable' bash -c `echo hello`
echo
echo "Mounted filesystems"
mount -l
echo
echo "Network Configuration"
ifconfig -a | grep 'Link\|inet'
echo
echo "Print Hosts"
cat /etc/hosts
echo echo "Print ARP"
arp
echo
echo "Development tools availability"
which gcc
which g++
which python
echo "Print TCP/UDP Listening Services"
netstat -tunlpe
echo
echo "Installed Packages"
dpkg -l
echo
echo "Find Readable Folders in /etc"
find /etc -user `id -u` -perm -u=r -o -group `id -g` -perm -g=r -o -perm -o=r -ls 2> /dev/null
echo
echo "Find SUID and GUID files"
find / -type f -perm -u=s -o -type f -perm -g=s -ls 2> /dev/null
echo
echo "Find all SUID root files"
find / -user root -perm -4000 -print 2> /dev/null