Added new pages

This commit is contained in:
benjamyn committed 2019-01-01 04:35:51 +11:00
1 parent 121d03b3d9
commit 699cfea34a
32 files changed
+40 -7293

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
#Commands
##Files
###tail
`tail` by default reads the last 5 lines of the input file and then exits
###awk
`awk` is used to fuck with data
+22
View File
@@ -0,0 +1,22 @@
#Connections to servers
Usually connections to servers are a sign that all is working, occasionally though some nefarious parties decide that they really like the server and want to hog all the connections to themselves.
A command you can use to see the connections on a server is
`netstat -anp | grep 'tcp\|udp' | awk '{print $5}' | cut -d ':' -f 1 | sort | uniq -c | nort -n`
In these situations we will usually see a high connection count for certain services, the most common ones are (In order of how common they are)
* HTTP (Web Service)
* SMTP (Outgoing Email Service)
* IMAP (Incoming Email Service)
* POP3 (Incoming Email Service)
* FTP (File Transport Service)
##HTTP
Finding IP addresses connecting to HTTP is quite easy, all you should need to do is tail access logs to find the IP addresses
You can use a command like `tail -f /home/*/access-logs/* | awk '{print $1}'` to get a live update on connections to the webistes on the server.w [For more information on the commands used click here](commands.md)
+5
View File
@@ -0,0 +1,5 @@
#Wireguard
This doc is because I am awful when it comes to setting shit up
so wireguard instructions will go here