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
#view current chains | |
$ iptables -L | |
#remove/flush all rules & delete chains | |
$ iptables -F | |
$ iptables -X | |
$ iptables -t nat -F | |
$ iptables -t nat -X | |
$ iptables -t mangle -F | |
$ iptables -t mangle -X |
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
cat /proc/cpuinfo |grep processor |
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
Follow normal process for installing openSSH/openSSL, generating keys and adding to remote host. In cygwin, add the following to .bash_profile | |
### this is necessary to start ssh-agent and add keys | |
SSH_ENV="$HOME/.ssh/environment" | |
function start_agent { | |
echo "Initialising new SSH agent..." | |
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}" | |
echo succeeded | |
chmod 600 "${SSH_ENV}" |
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
#!/bin/bash | |
echo "Type the directory from /var/www, followed by [ENTER]:" | |
read dir | |
cd /var/www/$dir | |
echo "Updating owners..." |
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
#!/bin/bash | |
echo "Type the directory from /var/www, followed by [ENTER]:" | |
read dir | |
cd /var/www/$dir | |
echo "Updating owners..." |
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
#!/bin/bash | |
#Download all issues of phrack | |
for i in {1..68} | |
do | |
echo "Downloading... http://www.textfiles.com/magazines/PHRACK/PHRACK$i" | |
wget "http://www.textfiles.com/magazines/PHRACK/PHRACK$i" |
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
#include <stdio.h> | |
int main(void) { | |
__asm | |
{ | |
mov ebx, fs:[0x30] | |
mov ebx, [ebx + 0xc] | |
mov ebx, [ebx + 0x14] | |
mov esi, [ebx + 0x28] | |
} |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <windows.h> | |
#include <winsock.h> | |
#include <wininet.h> | |
#pragma comment (lib, "wininet.lib") | |
HANDLE iH; | |
HANDLE iR; |
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
#!/bin/bash | |
# For when you need to clear/delete a specific range of analysis | |
for i in {294..500} | |
do | |
curl "http://<YOUR_IP:8000/analysis/remove/$i/" | |
done |
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
#!/usr/bin/env bash | |
# Author: Josh Stroschein | |
# Source: https://askubuntu.com/questions/244641/how-to-set-up-and-use-a-virtual-python-environment-in-ubuntu | |
# NOTES: Run this script as: sudo -u <USERNAME> cuckoo-setup-virtualenv.sh | |
# Additionally, your environment may not allow the script to source bashrc and you may need to do this manually after the script completes | |
# install virtualenv | |
sudo apt-get update && sudo apt-get -y install virtualenv |
OlderNewer