- P stands for Parallelism
- I stands for Instruction Set
- M stands for Memory Register
- P stands for P.I.M.P. <- tail recursion!
This file contains 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
# This is supposedly what CRIME by Juliano Rizzo and Thai Duong will do | |
# Algorithm by Thomas Pornin, coding by xorninja, improved by @kkotowicz | |
# http://security.blogoverflow.com/2012/09/how-can-you-protect-yourself-from-crime-beasts-successor/ | |
import string | |
import zlib | |
import sys | |
import random | |
charset = string.letters + string.digits + "%/+=" |
This file contains 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/env ruby | |
require 'packetfu' | |
# filter = argv[0] - tcpdump style. | |
# e.g. 'dst host bla.dom.tld and port http and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)' | |
# to cap. http traffic. or 'host W.X.Y.Z' to cap a speficic host/ip | |
cap = PacketFu::Capture.new(:start => true) | |
cap.save(:filter => ARGV[0]) |
This file contains 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/env ruby | |
# | |
# W = Number of Bits (e.g. 1024, 2048,..) | |
# Generate W/2-bit primes p and q such that p != q and |pq| = W | |
# | |
require 'securerandom' | |
# constant W bits: | |
W = 1024 | |
# subtract one integer to avoid confusion with bit-shifting later on |
This file contains 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
#modules: | |
> module list | |
Currently Loaded Modulefiles: | |
1) shared 6) intel/compiler/64/13.1/2013.5.192 | |
2) cmgui/6.1 7) torque/4.2.2 | |
3) cmsh 8) intel/mkl/64/11.0/2013.5.192 | |
4) cmd 9) intel-mpi/64/4.1.1/036 | |
5) cluster-tools/6.1 | |
#build: |
This file contains 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
UV00000261-P000:~ # free -g | |
total used free shared buffers cached | |
Mem: 1956 4 1952 0 0 0 | |
-/+ buffers/cache: 3 1952 | |
Swap: 7 0 7 | |
UV00000261-P000:~ # free -m | |
total used free shared buffers cached | |
Mem: 2003210 4283 1998927 0 19 328 | |
-/+ buffers/cache: 3935 1999275 |
This file contains 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
server { | |
listen 80; | |
server_name nessus.gmi.oeaw.ac.at; | |
rewrite ^ https://$server_name$request_uri? permanent; | |
} | |
server { | |
listen 443; | |
server_name nessus.gmi.oeaw.ac.at; | |
client_max_body_size 100m; |
This file contains 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
vpn(config)# ldap attribute-map group_vpn-users | |
vpn(config-ldap-attribute-map)# map-name memberOf vpn-users | |
^ | |
ERROR: % Invalid input detected at '^' marker. | |
vpn(config-ldap-attribute-map)# map-name memberOf vpnusers | |
^ | |
ERROR: % Invalid input detected at '^' marker. | |
vpn(config-ldap-attribute-map)# map-name memberOf vpn_users | |
^ | |
ERROR: % Invalid input detected at '^' marker. |
This file contains 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
package require Thread | |
set network "192.168.0" | |
set threads 8 | |
# create $threads number of threads | |
for {set t 0} {$t < $threads} {incr t} { | |
set thread_id [thread::create { | |
puts " >> thread [thread::id] started." | |
proc example_function {value} { |
This file contains 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/expect -f | |
# | |
# force puppet on previously unmanaged centos 6 hosts | |
# | |
# author: Aaron <azet@azet.org> Zauner @ 7.2.2014 | |
# depends: expect | |
# license: MIT | |
# | |
set timeout 60 |