Skip to content

Instantly share code, notes, and snippets.

@omegahanggara
omegahanggara / heartbleed.c
Created April 17, 2014 15:53
Heartbleed Exploit OpenSSL Coded in C
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <getopt.h>
#include <signal.h>
#include <netdb.h>
#include <fcntl.h>
#include <sys/socket.h>
#!/usr/bin/env bash
# File name: GitPostToTwitter
# Author: Krisan Alfa Timur
command -v twidge > /dev/null
if [[ -d .git ]]; then
if [[ $? -eq 0 ]]; then
read_git_hub=$(cat .git/config | grep github);
if [[ $read_git_hub == "" ]]; then
@omegahanggara
omegahanggara / kernel-upgrader.sh
Created June 5, 2013 08:08
You can Upgrade Your Linux Kernel to The Latest Version on https://www.kernel.org by using this script
#!/bin/bash
# Variable
currentKernel=$(uname -r)
latestKernel=$(curl https://www.kernel.org/ -s | sed -n "/<td id=\"latest_link\">/,/<\/td>/p" | sed -n -e 's/.*<a.*>\(.*\)<\/a>.*/\1/p');
urlLatestKernel=$(echo "https://www.kernel.org$(curl https://www.kernel.org/ -s | grep $latestKernel | grep downloadarrow | awk -F "<" {'print $2'} | sed "s/a href\=\".\|\">//g")")
# Function
cin() {
if [ "$1" == "action" ] ; then output="\e[01;32m[>]\e[00m" ; fi
@omegahanggara
omegahanggara / SublimeTextInstaller.sh
Last active December 18, 2015 00:29
Sublime Text 2 Installer
#!/bin/bash
# Variable
arch=$(uname -m)
url32="http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%202.0.1.tar.bz2"
url64="http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%202.0.1%20x64.tar.bz2"
extractOutput=
# Function
cin() {