Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
#!/usr/bin/python | |
import socket | |
ip = raw_input("Enter the IP: ") | |
port = input("Enter the Port: ") | |
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
if s.connect_ex((ip, port)): | |
print "Port", port, "is closed" | |
else: |
<VirtualHost *:80> | |
ServerAdmin webmaster@localhost | |
ProxyRequests Off | |
ProxyPreserveHost On | |
<Proxy *> | |
Order allow,deny | |
Allow from all | |
</Proxy> | |
ProxyPass / http://localhost:8069/ |
if __name__ == '__main__': | |
import sys | |
import mp4 | |
import argparse | |
def write_file(path, content): | |
with open(path, 'wb') as f: | |
f.write(content) | |
def addr(sval): |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
<?php | |
namespace App\Console\Commands; | |
use Illuminate\Console\Command; | |
use Illuminate\Support\Facades\Config; | |
class BackupCommand extends Command | |
{ | |
protected $sites = []; |
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
"""HTML2eBook a tiny function that converts HTML5 to eBook,Mobile Friendly.""" | |
import os | |
import zipfile | |
from getpass import getuser |
let regex; | |
/* matching a specific string */ | |
regex = /hello/; // looks for the string between the forward slashes (case-sensitive)... matches "hello", "hello123", "123hello123", "123hello"; doesn't match for "hell0", "Hello" | |
regex = /hello/i; // looks for the string between the forward slashes (case-insensitive)... matches "hello", "HelLo", "123HelLO" | |
regex = /hello/g; // looks for multiple occurrences of string between the forward slashes... | |
/* wildcards */ | |
regex = /h.llo/; // the "." matches any one character other than a new line character... matches "hello", "hallo" but not "h\nllo" | |
regex = /h.*llo/; // the "*" matches any character(s) zero or more times... matches "hello", "heeeeeello", "hllo", "hwarwareallo" |
I hereby claim:
To claim this, I am signing this object:
Download the appropriate Kali Linux .iso
I used a 64 bit .iso
image, downloaded via HTTP. I downloaded the amd64 weekly version, as the pool
linux headers (needed below for installation of wireless drivers) were ahead of the stable release kernel.
Download the SHA256SUMS
and SHA256SUMS.gpg
files from the same location.
PS1='\[\033[31m\]\w\[\033[0m\] $ ' | |
export EDITOR=vim | |
alias st='git status -sb' |