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
:local wanInterface "ether1"; | |
:local remoteDNSServer XX.XX.XX.XX; | |
:local remoteDNSKeyName "ddns-key"; | |
:local remoteDNSKey "MY_HMAC_MD5_KEY_BASE64"; | |
:local remoteDNSZone "mydomain.com" | |
:local remoteDNSName "domain" | |
:local dnsUpdateIP [/ip cloud get public-address]; | |
:log info "Update Dynamic DNS - DNS Server @ $remoteDNSServer - Zone: $remoteDNSZone Name: $remoteDNSName IP: $dnsUpdateIP" |
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 | |
GPG_BIN=gpg2 | |
ROOTDIR=$(pwd) | |
WORKDIR=$ROOTDIR/out | |
TMPDIR="$(mktemp -d)" | |
MASTER_KEY_TYPE=RSA | |
MASTER_KEY_SIZE=4096 | |
REAL_NAME="Gassan Idriss" | |
[email protected] | |
MASTER_KEY_EXPIRATION=0 |
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
<?php | |
/** | |
* @class FtpClient | |
* | |
* Example usage: | |
* $host = 'ftp.mivamerchantdev.com'; | |
* $port = 21; | |
* $username = 'myusername'; | |
* $password = 'mypassword'; | |
* |
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
<?php | |
/** | |
* ArgumentParser | |
* | |
* Usage: | |
* | |
* $args = new ArgumentParser(new Console(), array( | |
* new Argument('vara', 'a', Argument::ARG_TYPE_STRING, 'Help text for vara', null, Argument::ARG_OPTIONAL), | |
* new Argument('varb', 'b', Argument::ARG_TYPE_INT, 'Help text for varb', false, Argument::ARG_OPTIONAL), | |
* new Argument('varc', 'c', Argument::ARG_TYPE_BOOL, 'Help text for varc', false, Argument::ARG_OPTIONAL) |
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
<?php | |
class QueryBuilder { | |
const QUERY_SELECT = 1; | |
const QUERY_INSERT = 2; | |
const QUERY_UPDATE = 3; | |
const QUERY_DELETE = 4; | |
const QUERY_REPLACE = 5; | |
const PARAMETER_STRING = 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 sqlite3 | |
import argparse | |
from slugify import slugify | |
import os | |
from jinja2 import Environment, FileSystemLoader | |
#import youtube_dl | |
def init_database(path): | |
connection = sqlite3.connect(path) | |
cursor = connection.cursor() |
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
# hotkey_utils.py - bNull | |
# | |
# Some useful shortcuts for binding to hotkeys. Current output/hotkeys: | |
# | |
# [+] Bound make_dwords to Ctrl-Alt-D | |
# [+] Bound make_cstrings to Ctrl-Alt-A | |
# [+] Bound make_offset to Ctrl-Alt-O | |
import idaapi | |
import idc |
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 sys | |
from idc import * | |
from idaapi import * | |
from idautils import * | |
import time | |
import ntpath | |
def path_leaf(path): | |
head, tail = ntpath.split(path) | |
return tail or ntpath.basename(head) |