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 / net.sh
Created March 18, 2011 03:19
PoC bash Scripting
#!/bin/bash
for webservmethod in GET POST PUT TRACE CONNECT OPTIONS PROPFIND;
do
printf "$webservmethod " ;
printf "$webservmethod /HTTP/1.1\nHost:$1\n\n " |nc -q 1 $1 80 |grep "HTTP/1.1"
done
@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 / solvesbd.html
Created March 18, 2011 03:28
this is a simple html file using a simple query for found the total comments and all post of blogger
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Triva sbd</title><style type="text/css">
body { }
h1 { font-size: xx-large;
font-weight: bold;
border-bottom: 1px solid black; }
div.note {
position: relative;
@c1b3rh4ck
c1b3rh4ck / template.asm
Last active December 14, 2015 00:09
Plantilla de registros y direcciones de memoria del pic16f877
;Template para Pic16f877
;ToDo :
;Crear Rutinas de tiempo
;Crear Conversion A/D
;Crear Manejadores de memoria de datos indirecto y directo
;Jugar con registros para XOR en memoria
;Comprar un 18 con memoria flash para alcanzar a jaime A.
;Crear nuevas rutinas para espacio de 96 bytes
@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
@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 / 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 / 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 / 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 / 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;