This file contains 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
###SSH into a remote machine### | |
#domain name | |
ssh user@domain.com | |
#ip address | |
ssh user@192.168.1.1 | |
__exit:__ `exit` |
This file contains 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
=== http status codes =================================================== | |
1xx Informational | |
100 Continue | |
101 Switching Protocols | |
102 Processing (WebDAV; RFC 2518) | |
2xx Success | |
200 OK | |
201 Created |
This file contains 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
" _ _ " | |
" _ /|| . . ||\ _ " | |
" ( } \||D ' ' ' C||/ { % " | |
" | /\__,=_[_] ' . . ' [_]_=,__/\ |" | |
" |_\_ |----| |----| _/_|" | |
" | |/ | | | | \| |" | |
" | /_ | | | | _\ |" | |
It is all fun and games until someone gets hacked! |
This file contains 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
import os | |
import zipfile | |
# List all files in the current directory | |
allFileNames = os.listdir( os.curdir ) | |
# Open the zip file for writing, and write some files to it | |
myZipFile = zipfile.ZipFile( "spam_skit.zip", "w" ) | |
# Write each file present into the new zip archive, except the python script |
This file contains 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
import zipfile | |
myZipFile = zipfile.ZipFile( "test.zip", "r" ) | |
# List all files contained within the zip file | |
for fileName in myZipFile.namelist(): | |
print fileName | |
# List file information |
This file contains 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
#!/usr/bin/env python | |
import optparse | |
import zipfile | |
import hashlib | |
import signal | |
import sys | |
import os | |
import cStringIO | |
import textwrap |
This file contains 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
#!/usr/bin/python | |
# Description: | |
# This tool helps you to find hack attempts | |
# within webserver log files (e.g. Apache2 access logs). | |
# Features: | |
# - Error handling | |
# - Scan a log file for four different attack types | |
# - Display a short scan report |
This file contains 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
#!/usr/bin/env python | |
# Description : Maps DNS from a given domain. | |
import socket | |
import sys | |
domain = raw_input("Enter domain: ") | |
try: |
This file contains 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
#!/bin/bash | |
# Description : Download files using curl. | |
echo "Enter the name of your flat file: " | |
read input_variable | |
echo "You entered: $input_variable" | |
#create urls variable array | |
declare urls=( `cat "$input_variable" `) |