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 / simplezoom.js
Created March 18, 2011 03:23
Zoom modificado de @barreto nice !
/*script para realizar un zoom con javascript
by barreto modificado para propositos educativos by c1b3rh4ck
*/
1. insertar lo siguiente dentro del head
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="./fancybox/jquery.mousewheel-3.0.2.pack.js"></script>
<script type="text/javascript" src="./fancybox/jquery.fancybox-1.3.1.js"></script>
2. tambien las css
<link rel="stylesheet" type="text/css" href="./fancybox/jquery.fancybox-1.3.1.css" media="screen" />
<link rel="stylesheet" href="style.css" />
@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 / 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
@c1b3rh4ck
c1b3rh4ck / distancias.m
Last active December 27, 2015 22:58
Hallar Distancias Entre Dos Nodos o Mas Nodos!.%Se debe hallar la distancia de cada nodo de una subestación (S1), con los %de las otras subestaciones (S2 y S3)Se debe hallar la distancia de cada %nodo de una subestación (S1), con los de las otras
%Distancia Nodal,Subestaciones
%Feedback:hfjimenez@utp.edu.co
%Gpl V2
%date=10/09/2013
%Hallar Distancias Entre Dos Nodos o Mas Nodos!.
%Se debe hallar la distancia de cada nodo de una subestación (S1), con los
%de las otras subestaciones (S2 y S3)Se debe hallar la distancia de cada
%nodo de una subestación (S1), con los de las otras subestaciones (S2 y S3)
clc
clear all
@c1b3rh4ck
c1b3rh4ck / Dissuuf.sh
Last active December 20, 2015 12:09
This script was created not for ilegal porpouses or something like that I was bored and a friend of mine just ask me how to download files from issuu.com and that's it.Please don't abuse and use just when you need it,you can download,and convert to pdf or jpg files.
#!/bin/bash
# Copyright (c) c1b3rh4ck's
#This is a PoC for Download images using curl from issuu's site
#
# This program is free software. It comes without any warranty, to
# the extent permitted by applicable law. You can redistribute it
# and/or modify it under the terms of the Do What The Fuck You Want
# To Public License, Version 2, as published by Sam Hocevar. See
# http://sam.zoy.org/wtfpl/COPYING for more details.
@c1b3rh4ck
c1b3rh4ck / curve.m
Last active December 14, 2015 04:39
Progressive plot...of eia
%feedback:hfjimenez@utp.edu.co
clc;
clear all;
d=input('Enter the decade');
n=input('Enter tolerance factor En,where n is {3,192}:');
for i=1:n;
R(i)=d*10^(i/n);
end;
plot(R,'r--');%red ploting
grid on;%grid
@c1b3rh4ck
c1b3rh4ck / eiacurve.m
Last active December 14, 2015 04:39
Calculator of Standard EIA Decade Resistor Values Table
%Standard EIA Decade Resistor Values Table
%R=d*10^(i/n)
%feedback:hfjimenez@utp.edu.co
%http://www.logwell.com/tech/components/resistor_values.html
clc
clear all;
clear ans;
d=input('What decade are you trying to obtain ?');%enter de multi factor 1,10,100,1000