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/python | |
| import socket | |
| import time | |
| from threading import Timer | |
| target = "127.0.0.1" | |
| port = 80 | |
| maxSockets = 700 | |
| ka_timeout = 10 | |
| socket_timeout = 2 |
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/python3 | |
| import sys | |
| import requests | |
| #import curses | |
| import atexit | |
| """ def reset_curses(): | |
| curses.endwin() """ |
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
| const readline = require('readline') | |
| const crypto = require("crypto") | |
| //require('draftlog').into(console) | |
| //config | |
| const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; | |
| const maxLength = 10; | |
| const rl = readline.createInterface({ | |
| input: process.stdin, |
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
| 46,51c46,51 | |
| < GETOPTTEST=`getopt -T` | |
| < if test "$?" -eq 4; then # GNU getopt | |
| < FAKE_TEMP=`getopt -l lib: -l faked: -l unknown-is-real -l fd-base: -l version -l help -- +l:f:i:s:ub:vh "$@"` | |
| < else | |
| < FAKE_TEMP=`getopt l:f:i:s:ub:vh "$@"` | |
| < fi | |
| --- | |
| > #GETOPTTEST=`getopt -T` | |
| > #if test "$?" -eq 4; then # GNU getopt |
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
| (1..100).each do |i| | |
| puts "Fizz" if i % 3 == 0 && i % 5 != 0 | |
| puts "Buzz" if i % 5 == 0 && i % 3 != 0 | |
| puts "Fizzbuzz" if i % 5 == 0 && i % 3 == 0 | |
| puts i if i % 5 != 0 && i % 3 != 0 | |
| # Another method | |
| =begin |
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
| # calculate reversible primes | |
| primes = [] | |
| num = 1 | |
| def calcPrimes(start): | |
| global num | |
| while len(primes) - start < len(stack): | |
| if all(num % i != 0 for i in range(2,num)): | |
| if "".join(reversed(str(num))) == str(num): | |
| primes.append(num) | |
| num += 1 |
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
| # Prob doesnt work because of uncomplete syntax files | |
| color-link constant.bool.true "green" | |
| color-link constant.bool.false "red" | |
| color-link constant.string "magenta" | |
| color-link comment "blue" | |
| color-link constant "green" | |
| color-link identifier "cyan" | |
| color-link statement "yellow" |
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
| ; Sources: | |
| ; https://youtu.be/HgEGAaYdABA | |
| ; Hello World Program - asmtutor.com | |
| ; Compile with: nasm -f elf32 -o hello_world.o hello_world.asm | |
| ; Link with (64 bit systems require elf_i386 option): ld -m elf_i386 hello_world.o -o hello_world | |
| ; Run with: ./helloworld | |
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/python | |
| import sys,os | |
| if "--help" in sys.argv: | |
| print "Usage: ./decrypter.py <encrypted> <wordlist>" | |
| wordlist = sys.argv[2] | |
| words = open(wordlist, 'r', encoding='latin-1').read().split() | |
| wordcount = len(words) |
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/ruby | |
| require 'net/http' | |
| require 'uri' | |
| require 'fileutils' | |
| user = ARGV[0] || "mango" | |
| puts "Attacking #{user}" | |
| #chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".split "" |