Skip to content

Instantly share code, notes, and snippets.

View progress44's full-sized avatar
Drinking coffee

Ani Sinanaj progress44

Drinking coffee
View GitHub Profile
(From http://renebakx.nl/7/running-a-local-wildcard-dns-server-on-your-mac/)
Update for mavericks (10.9)
Named and bind are not packaged by default anymore, however the good people of menandmice provide a pre-compiled binary that saves you a lot of compiling with homebrew :)
Just go to http://support.menandmice.com/download/bind/macosx/10.9-Mavericks/ and download the ISCBIND-9.9.4-x86_64-10.9.zip package.
Unzip it, and you get a folder called __Parent__ with a subfolder called __Parent__ and the package called ISCBIND-9.9.4-x86_64-10.9.mpkg double click to install and follow the instructions down below

WannaCry|WannaDecrypt0r NSA-Cyberweapon-Powered Ransomware Worm

  • Virus Name: WannaCrypt, WannaCry, WanaCrypt0r, WCrypt, WCRY
  • Vector: All Windows versions before Windows 10 are vulnerable if not patched for MS-17-010. It uses EternalBlue MS17-010 to propagate.
  • Ransom: between $300 to $600. There is code to 'rm' (delete) files in the virus. Seems to reset if the virus crashes.
  • Backdooring: The worm loops through every RDP session on a system to run the ransomware as that user. It also installs the DOUBLEPULSAR backdoor. It corrupts shadow volumes to make recovery harder. (source: malwarebytes)
  • Kill switch: If the website www.iuqerfsodp9ifjaposdfjhgosurijfaewrwergwea.com is up the virus exits instead of infecting the host. (source: malwarebytes). This domain has been sinkholed, stopping the spread of the worm. Will not work if proxied (source).

update: A minor variant of the viru

@cschiewek
cschiewek / x11_docker_mac.md
Last active September 9, 2025 01:27
X11 in docker on macOS

To forward X11 from inside a docker container to a host running macOS

  1. Install XQuartz: https://www.xquartz.org/
  2. Launch XQuartz. Under the XQuartz menu, select Preferences
  3. Go to the security tab and ensure "Allow connections from network clients" is checked.
  4. Run xhost + ${hostname} to allow connections to the macOS host *
  5. Setup a HOSTNAME env var export HOSTNAME=`hostname`*
  6. Add the following to your docker-compose:
 environment:
@kopiro
kopiro / sdkinstall.sh
Created November 3, 2016 09:00
Install Titanium GA SDK
#!/bin/bash
# Usage sdkinstall "5.5.0 5.5.1"
rm -rf /tmp/tisdk
mkdir -p /tmp/tisdk
function install_sdk() {
if [ -d ~/Library/Application\ Support/Titanium/mobilesdk/osx/$2 ]; then
echo "Titanium SDK $2 already installed!"
var RomanNumerals = {
fromRoman: function(roman) {
var map = {IV:4,IX:9,XL:40,XC:90,CD:400,CM:900,I:1,V:5,X:10,L:50,C:100,D:500,M:1000};
var value = 0;
for (var i = 0; i < roman.length; i++) {
var two = map[roman[i]+roman[i+1]], one = map[roman[i]];
if (two != null) { value += two; i++; }
else if (one != null) value += one;
}
return value;
@kopiro
kopiro / mysql2sqlite.sh
Created July 12, 2016 07:50 — forked from esperlu/mysql2sqlite.sh
MySQL to Sqlite converter
#!/bin/sh
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the
# CREATE block and create them in separate commands _after_ all the INSERTs.
# Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk.
# The mysqldump file is traversed only once.
# Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite
# Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite
@kopiro
kopiro / gist:62a0d3d07846ab6cee3d0ce928038f01
Last active October 20, 2017 18:21
iOS App Reverse Engeneering
http://blog.dewhurstsecurity.com/2015/11/10/mobile-security-certificate-pining.html
https://github.com/intrepidusgroup/trustme
https://nabla-c0d3.github.io/blog/2013/08/20/intercepting-the-app-stores-traffic-on-ios/
https://developer.apple.com/library/ios/technotes/tn2232/_index.html
https://books.google.it/books?id=2D50GNA1ULsC&pg=PA186&lpg=PA186&dq=cycript+scripts&source=bl&ots=YQTU0EMbsy&sig=4cptZGKXOlTJ-HahM17LvTsfans&hl=en&sa=X&ved=0ahUKEwjw4aPmja_NAhVErRQKHSJIAwA4ChDoAQg8MAU#v=onepage&q=cycript%20scripts&f=false
@thomasjsn
thomasjsn / laravel-queue.service
Last active August 20, 2025 15:41
Laravel queue worker using systemd.
# Laravel queue worker using systemd
# ----------------------------------
#
# /lib/systemd/system/queue.service
#
# run this command to enable service:
# systemctl enable queue.service
[Unit]
Description=Laravel queue worker
@Lewiscowles1986
Lewiscowles1986 / rPi3-ap-setup.sh
Last active March 31, 2025 15:46
Raspberry Pi 3 access-point-setup
#!/bin/bash
#
# This version uses September 2017 august stretch image, please use this image
#
if [ "$EUID" -ne 0 ]
then echo "Must be root"
exit
fi