Exercise: https://gist.github.com/jorin-vogel/2e43ffa981a97bc17259
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
''' | |
Filename : TinBaDGA.py | |
Developer : Garage4Hackers | |
Greets : b0nd, FB1H2S, "vinnu", l0rdDeathStorm, nightrover and all g4h team | |
''' | |
import os, time | |
utility = "TinBaDGA" |
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 argparse | |
from datetime import datetime | |
def generate_necurs_domain(sequence_nr, magic_nr, date): | |
def pseudo_random(value): | |
loops = (value & 0x7F) + 21 | |
for index in range(loops): | |
value += ((value*7) ^ (value << 15)) + 8*index - (value >> 5) | |
value &= ((1 << 64) - 1) |
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 json | |
import argparse | |
from datetime import datetime | |
import time | |
def get_sld(length, seed): | |
sld = "" | |
modulo = 541 * length + 4 | |
a = length * length |
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 argparse | |
class RandInt: | |
def __init__(self, seed): | |
self.seed = seed | |
def rand_int_modulus(self, modulus): | |
ix = self.seed | |
ix = 16807*(ix % 127773) - 2836*(ix / 127773) & 0xFFFFFFFF |
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 | |
# bash generate random alphanumeric string | |
# | |
# bash generate random 32 character alphanumeric string (upper and lowercase) and | |
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | |
# bash generate random 32 character alphanumeric string (lowercase only) | |
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1 |
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
/* Compile with: g++ -Wall –Werror -o shell shell.c */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <ctype.h> | |
#include <unistd.h> | |
#include <sys/types.h> | |
#include <sys/wait.h> |
I hereby claim:
- I am 7h3rAm on github.
- I am 7h3ram (https://keybase.io/7h3ram) on keybase.
- I have a public key whose fingerprint is 761C A4F7 42BD 3DBA AC8B 5793 3DC1 CDFD C1B6 C8B2
To claim this, I am signing this object:
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
Verifying that "ankurtyagi.id" is my Blockstack ID. https://onename.com/ankurtyagi |