| command | description |
|---|---|
| ctrl + a | Goto BEGINNING of command line |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ##TCP FLAGS## | |
| Unskilled Attackers Pester Real Security Folks | |
| ============================================== | |
| TCPDUMP FLAGS | |
| Unskilled = URG = (Not Displayed in Flag Field, Displayed elsewhere) | |
| Attackers = ACK = (Not Displayed in Flag Field, Displayed elsewhere) | |
| Pester = PSH = [P] (Push Data) | |
| Real = RST = [R] (Reset Connection) | |
| Security = SYN = [S] (Start Connection) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #connect to ssl site | |
| openssl s_client -connect ip:port | |
| #vhost connect | |
| openssl s_client -servername mysite.co.uk -connect mysite.co.uk:443 | |
| #Reading CSR | |
| openssl req -noout -text -in uat-mobi.scotrail.co.uk.csr | |
| #Reading certificates |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Get the current configuration and save it locally | |
| curl -X GET http://user:password@hudson.server.org/job/myjobname/config.xml -o mylocalconfig.xml | |
| #Update the configuration via posting a local configuration file | |
| curl -X POST http://user:password@hudson.server.org/job/myjobname/config.xml --data-binary "@mymodifiedlocalconfig.xml" | |
| #Creating a new job via posting a local configuration file | |
| curl -X POST "http://user:password@hudson.server.org/createItem?name=newjobname" --data-binary "@newconfig.xml" -H "Content-Type: text/xml" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| METHOD 1: (with nc in localbox) | |
| ssh -D 60002 mohan@10.1.1.20 | |
| sftp -o 'ProxyCommand=nc -xlocalhost:60002 %h %p' USER@remotehost.com | |
| METHOD 2: (with nc in remote box) | |
| sftp -o 'ProxyCommand ssh -q -l mohan 10.1.1.20 nc remotehost.com 22' USER@remotehost.com | |
| METHOD 3: (without nc at all) | |
| ssh -L 60002:remotehost.com:22 mohan@10.1.1.20 | |
| sftp -o Port=60002 USER@localhost |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo amazon-linux-extras install epel -y | |
| sudo yum install stress -y | |
| #Run stress for 5mins | |
| sudo stress --cpu 1 --timeout 320 |
NOTE: This used to be a gist that continually expanded. It's now a github project because it's considerably easier for other people to edit, fix and expand on Docker using Github. Just click README.md, and then on the "writing pen" icon on the right to edit.
NewerOlder
