This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/php | |
| <?PHP | |
| // Generates a strong password of N length containing at least one lower case letter, | |
| // one uppercase letter, one digit, and one special character. The remaining characters | |
| // in the password are chosen at random from those four sets. | |
| // | |
| // The available characters in each set are user friendly - there are no ambiguous | |
| // characters such as i, l, 1, o, 0, etc. This, coupled with the $add_dashes option, | |
| // makes it much easier for users to manually type or speak their passwords. | |
| // |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| PORT=1234 | |
| APPEND="Ganagato" | |
| if [[ "$1" = "listener" ]]; then | |
| counter=0 | |
| while read line; do | |
| echo "${line}${APPEND}${counter}" | |
| counter=$((counter+1)) | |
| done < "${2:-/dev/stdin}" | |
| elif [[ "$1" = "-h" ]]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ps amux |awk '{ print $3,$2,$11}'|sort -h |tail -n 1|{ read test; echo $test; >&2 echo $test; }|awk '{ print $2}'|{ read pid;ps -ocommand= -p $pid; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import string, re | |
| particle = re.split('1?\d\d', "85128997411668") | |
| for for i in reversed(particle): | |
| print(chr(int(i))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/php | |
| <?php | |
| // Code FROM http://stackoverflow.com/questions/14079703/str-shuffle-and-randomness | |
| header("Content-type: image/png"); | |
| $im = @imagecreatetruecolor(512, 512) or die("Cannot Initialize new GD image stream"); | |
| $white = imagecolorallocate($im, 255, 255, 255); | |
| for($y = 0; $y < 512; $y ++) { | |
| for($x = 0; $x < 512; $x ++) { | |
| if (testMTRand()) { //change each function here | |
| imagesetpixel($im, $x, $y, $white); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Java static analysis (very simple) functions | |
| # by Enrique Alfonso Sanchez Montellano | |
| # http://security-dojo.com/programming-bits/static-source-code-audit-on-terminal-aka-glorified-greps-part-2/ | |
| auditjava () | |
| { | |
| if [ -z "$1" ]; then | |
| echo "Missing directory to audit!" | |
| echo "Usage: auditjava <directory>" | |
| else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| clear;while :;do echo $LINES $COLUMNS $(($RANDOM%$COLUMNS));sleep 0.1;done|gawk '{a[$3]=0;for(x in a) {o=a[x];a[x]=a[x]+1;printf "\033[%s;%sH ",o,x;printf "\033[%s;%sH*\033[0;0H",a[x],x;}}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| wget -qO- http://data.iana.org/TLD/tlds-alpha-by-domain.txt | sed -e '/^#/d' | sed 's/^/0.0.0.0 *./' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jccruz@oi:~/proyectos/Sysadmin-tools$ cat ~/.gitignore | |
| *.[oa] | |
| *.lo | |
| *.la | |
| *.gmo | |
| semantic.cache | |
| *~ | |
| *.pyc | |
| .hgignore | |
| # Compiled source # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| language: php | |
| php: | |
| - 5.4 | |
| - 5.3 | |
| matrix: | |
| allow_failures: | |
| - php: 5.5 |
NewerOlder