Skip to content

Instantly share code, notes, and snippets.

View c1b3rh4ck's full-sized avatar

c1b3rh4ck c1b3rh4ck

  • PereiraSecTeam
  • South-America
View GitHub Profile
@c1b3rh4ck
c1b3rh4ck / serverinfo.sh
Created January 24, 2015 20:58
statistics
#!/bin/bash
#Show some statistics of the server.
#Colors
red='\e[0;31m'
RED='\e[1;31m'
blue='\e[0;34m'
BLUE='\e[1;34m'
cyan='\e[0;36m'
CYAN='\e[1;36m'
@c1b3rh4ck
c1b3rh4ck / simulation.sh
Created January 24, 2015 20:50
Simulate system up to date debian
#!/bin/bash
#Cron Script Run from /etc/crontab.daily
#runs apt-get update and prints the output of a simulated
#dist-upgrade if new packages are found, also you can add a line in crontab with a pipe
#to run a mail.
if [[`apt-get update 2>&1|grep Get` ]]; then
if [[`apt-get --simulate dist-upgrade 2>&1|grep Inst` ]];then
apt-get --simulate dist-upgrade
fi

Keybase proof

I hereby claim:

  • I am c1b3rh4ck on github.
  • I am c1b3rh4ck (https://keybase.io/c1b3rh4ck) on keybase.
  • I have a public key whose fingerprint is 3BF5 75E3 F5F8 3EF4 432D D693 834E B578 493B 3138

To claim this, I am signing this object:

@c1b3rh4ck
c1b3rh4ck / main.tex
Last active August 29, 2015 14:06
Ctf Format.Writeup for Pereira Security Team
\documentclass[a4paper]{article}
\usepackage[spanish]{babel}
\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{url}
\usepackage{color}
\usepackage{hyperref}
\hypersetup{
@c1b3rh4ck
c1b3rh4ck / core.py
Created September 22, 2014 04:20
Core for ctfinfobot.
#!/usr/bin/python
#ctf infobot BarcampSE Pereira 2013
#colors and core :)
import os, sys
import string
import random
fwpath = os.getcwd()
sys.path.append(fwpath+"src")
@c1b3rh4ck
c1b3rh4ck / ctfinfobot.py
Created September 22, 2014 04:18
This newsbot is a simple script written in python.using the Twython library to interact with twitter api. The purpose of this script is received all the information(e.g hints,tricks and tips and if there are flags available :P ), Capture the flag or jeopardy contest besides that, OSINT techniques is a form of intelligence collection management t…
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#Ctf InfoBot c1b3rh4ck@gmail.com
#it was created thinking in the talk :
#Ctf and Jeopardy Contests,BarcampSE 2013
#https://twython.readthedocs.org/en/latest/
"""
ToDO :
@c1b3rh4ck
c1b3rh4ck / op.sh
Created January 19, 2014 15:07
opkg quick installer
#!/bin/bash
#feedback:hfjimenez@utp.edu.co
#install the luci interface web using an offline method
#hackaton 9 de ag you will need to upload this to 192.168.1.1 /tmp!
pkgs=(blua lua libuci-lua libubus-lua uhttpd luci-lib-ipkg luci-i18n-english luci-sgi-cgi luci-lib-core luci-lib-nixio luci-lib-sys luci-lib-web luci-proto-core luci-theme-base luci-theme-openwrt luci-mod-admin-core luci-mod-admin-full)
for pkg in "${pkgs[*]}
do
opkg install /tmp/luci-offline-packages/$pkg*.ipk
#!/bin/bash
#miner using linode 4 trial hours, this is why linode cancel the 4 trial hour :3 ,there was another script to create automatic users
#abusing of the feature of dots in gmail, if you got an email like : test123@gmail.com you could get 8 valid emails to use in linode trial :3
#t.est123@gmail.com, te.st123@gmail.com, tes.t123@gmail... this was until they add the obligatory payment options :S
users=(linode1 linode2 linode3 linode4)
password=(lino1 lino2 lino3 lino4)
#Install the cpu miner and the requirements.
aptitude -y install git unzip build-essential automake libcurl4-openssl-dev libdb++-dev libminiupnpc-dev libboost-all-dev autotools-dev && wget github.com/uncle-bob/quarkcoin-cpuminer/archive/master.zip && unzip master.zip
#running the instances on intel xeon we've got 8 cores
@c1b3rh4ck
c1b3rh4ck / antonio.m
Created November 10, 2013 19:26
Antonio's Problem
% Antonio's Problem
sello=0;
cara=0;
for i=1:10000000
j=10*rand; %obtener el valor aleatorio con decimales.
if (j<=5) %el rango del sello es 1-5 la cara es 6-10
sello=sello+1;
else
cara=cara+1;
@c1b3rh4ck
c1b3rh4ck / current.m
Created November 10, 2013 18:56
Steady state current or temperature of bare cable
function itcabledesnudo( )
% Program for computing steady state current or temperature of bare cable
% IEEE Standard 738 - 2006
% Carlos J. Zapata
%Modified by : Hector Jimenez S.
% Check the last updates.
% Last update
% Oct 01 - 2012: A bug in qsun function was removed
% May 06 - 2012: The progran was released