Skip to content

Instantly share code, notes, and snippets.

View RamadhanAmizudin's full-sized avatar
:electron:

Ramadhan Amizudin RamadhanAmizudin

:electron:
View GitHub Profile
@RamadhanAmizudin
RamadhanAmizudin / gist:8912160
Created February 10, 2014 08:15
Node.JS / Request
var request = require('request');
var hosts = ["http://host1/", "http://host2/", "http://host3/"];
hosts.forEach(function(val) {
request.get(val + 'status', function(error, response, body) {
var r = JSON.parse(body);
var status = r.status;
});
});
// How can I do if status == 'idle' and immedietly break the loop
@RamadhanAmizudin
RamadhanAmizudin / malwr.py
Created May 21, 2014 04:52
Dionaea: Malwr Module
from dionaea.core import ihandler, incident, g_dionaea
import logging
import json
import uuid
import time
import sqlite3
logger = logging.getLogger('malwr')
logger.setLevel(logging.DEBUG)
#!/bin/bash
#start
#-----------------------------------------------------------------------
find /srv/backup/daily/databases/ -name '*.gz' -mtime +7 | xargs rm -f;
find /srv/backup/daily/websites/ -name '*.gz' -mtime +7 | xargs rm -f;
# Are Weekly Backups Implemented?
# find /srv/backup/weekly/ -name '*.gz' -mtime +30 | xargs rm -f;
#-----------------------------------------------------------------------
#end
<?php
const SPACING_X = 1;
const SPACING_Y = 0;
const JOINT_CHAR = '+';
const LINE_X_CHAR = '-';
const LINE_Y_CHAR = '|';
$table = array(
array(
@RamadhanAmizudin
RamadhanAmizudin / gist:e70f2dae61a5455ee85b
Created May 26, 2015 09:09
Wargames.MY 2015 - Challenge 7 Base64 String
LyoNCiAqIFRoaXMgZmlsZSBoYXMgYmVlbiBjb21tZW50ZWQgdG8gc3VwcG9ydCBWaXN1YWwgU3R1ZGlvIEludGVsbGlzZW5zZS4NCiAqIFlvdSBzaG91bGQgbm90IHVzZSB0aGlzIGZpbGUgYXQgcnVudGltZSBpbnNpZGUgdGhlIGJyb3dzZXItLWl0IGlzIG9ubHkNCiAqIGludGVuZGVkIHRvIGJlIHVzZWQgb25seSBmb3IgZGVzaWduLXRpbWUgSW50ZWxsaVNlbnNlLiAgUGxlYXNlIHVzZSB0aGUNCiAqIHN0YW5kYXJkIGpRdWVyeSBsaWJyYXJ5IGZvciBhbGwgcHJvZHVjdGlvbiB1c2UuDQogKg0KICogQ29tbWVudCB2ZXJzaW9uOiAxLjMuMmINCiAqLw0KDQovKg0KICogalF1ZXJ5IEphdmFTY3JpcHQgTGlicmFyeSB2MS4zLjINCiAqIGh0dHA6Ly9qcXVlcnkuY29tLw0KICoNCiAqIENvcHlyaWdodCAoYykgMjAwOSBKb2huIFJlc2lnDQogKg0KICogUGVybWlzc2lvbiBpcyBoZXJlYnkgZ3JhbnRlZCwgZnJlZSBvZiBjaGFyZ2UsIHRvIGFueSBwZXJzb24gb2J0YWluaW5nDQogKiBhIGNvcHkgb2YgdGhpcyBzb2Z0d2FyZSBhbmQgYXNzb2NpYXRlZCBkb2N1bWVudGF0aW9uIGZpbGVzICh0aGUNCiAqICJTb2Z0d2FyZSIpLCB0byBkZWFsIGluIHRoZSBTb2Z0d2FyZSB3aXRob3V0IHJlc3RyaWN0aW9uLCBpbmNsdWRpbmcNCiAqIHdpdGhvdXQgbGltaXRhdGlvbiB0aGUgcmlnaHRzIHRvIHVzZSwgY29weSwgbW9kaWZ5LCBtZXJnZSwgcHVibGlzaCwNCiAqIGRpc3RyaWJ1dGUsIHN1YmxpY2Vuc2UsIGFuZC9vciBzZWxsIGNvcGllcyBvZiB0aGUgU29mdHdh
@RamadhanAmizudin
RamadhanAmizudin / gist:70aff50cacac6040b922
Created May 26, 2015 09:11
Wargames.MY 2015 - Challenge 7 Decoded Base64 String
/*
* This file has been commented to support Visual Studio Intellisense.
* You should not use this file at runtime inside the browser--it is only
* intended to be used only for design-time IntelliSense. Please use the
* standard jQuery library for all production use.
*
* Comment version: 1.3.2b
*/
/*
@RamadhanAmizudin
RamadhanAmizudin / gist:d63d571969f9b47cfc67
Created May 26, 2015 09:12
Wargames.MY 2015 - Challenge 7 index.html
<html>
<title>YouPorn...delicious...</title>
<body bgcolor="#000000">
<img src="logo.png"/>
<embed src="http://www.youporn.com" width="1200" height="960">
<img src="data:image/jpeg;base64,LyoNCiAqIFRoaXMgZmlsZSBoYXMgYmVlbiBjb21tZW50ZWQgdG8gc3VwcG9ydCBWaXN1YWwgU3R1ZGlvIEludGVsbGlzZW5zZS4NCiAqIFlvdSBzaG91bGQgbm90IHVzZSB0aGlzIGZpbGUgYXQgcnVudGltZSBpbnNpZGUgdGhlIGJyb3dzZXItLWl0IGlzIG9ubHkNCiAqIGludGVuZGVkIHRvIGJlIHVzZWQgb25seSBmb3IgZGVzaWduLXRpbWUgSW50ZWxsaVNlbnNlLiAgUGxlYXNlIHVzZSB0aGUNCiAqIHN0YW5kYXJkIGpRdWVyeSBsaWJyYXJ5IGZvciBhbGwgcHJvZHVjdGlvbiB1c2UuDQogKg0KICogQ29tbWVudCB2ZXJzaW9uOiAxLjMuMmINCiAqLw0KDQovKg0KICogalF1ZXJ5IEphdmFTY3JpcHQgTGlicmFyeSB2MS4zLjINCiAqIGh0dHA6Ly9qcXVlcnkuY29tLw0KICoNCiAqIENvcHlyaWdodCAoYykgMjAwOSBKb2huIFJlc2lnDQogKg0KICogUGVybWlzc2lvbiBpcyBoZXJlYnkgZ3JhbnRlZCwgZnJlZSBvZiBjaGFyZ2UsIHRvIGFueSBwZXJzb24gb2J0YWluaW5nDQogKiBhIGNvcHkgb2YgdGhpcyBzb2Z0d2FyZSBhbmQgYXNzb2NpYXRlZCBkb2N1bWVudGF0aW9uIGZpbGVzICh0aGUNCiAqICJTb2Z0d2FyZSIpLCB0byBkZWFsIGluIHRoZSBTb2Z0d2FyZSB3aXRob3V0IHJlc3RyaWN0aW9uLCBp
<?php
// from http://www.highonphp.com/regex-pattern-parsing-ifconfig
$data = <<<EOF
eth0 Link encap:Ethernet HWaddr 00:50:56:33:B6:D2
inet addr:192.168.12.103 Bcast:192.168.12.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1337 errors:0 dropped:0 overruns:0 frame:0
TX packets:985 errors:0 dropped:0 overruns:0 carrier:0
@RamadhanAmizudin
RamadhanAmizudin / ssltest.py
Last active August 31, 2015 18:59 — forked from sh1n0b1/ssltest.py
Python Heartbleed (CVE-2014-0160) Proof of Concept
#!/usr/bin/python
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org)
# The author disclaims copyright to this source code.
import sys
import struct
import socket
import time
import select
@RamadhanAmizudin
RamadhanAmizudin / autoexec.cfg
Last active October 6, 2017 15:00
CSGO autoexec.cfg
// launch option
// -noforcemparms -noforcemaccel -noforcemspd -novid -high -freq 120 -tickrate 128
// Common Stuff's
// Common Stuff's
rate "128000"
cl_cmdrate "128"
cl_updaterate "128"
cl_interp "0.0"