diff --git a/README.md b/README.md index 03c2fd5..f99447a 100644 --- a/README.md +++ b/README.md @@ -11,11 +11,14 @@ Host defaults to "127.0.0.1" and port default to "5454". ctl + c to stop ## Start a Server +Warning: Server needs a HUGE amount of RAM! ``` -java -jar Server.jar [c:classname] [p:port] +java -jar -Xmx 6G -Xms 1G Server.jar [c:classname] [p:port] ``` classname default to "Test" and is the class thats loaded to generate Jobs. port defaults to "5454". to stop enter "stop" into the console. Force Stop: ctl + c + +crack.py and crack.sh need much ram. diff --git a/crack.py b/crack.py new file mode 100644 index 0000000..b602ea4 --- /dev/null +++ b/crack.py @@ -0,0 +1,10 @@ +#!/bin/python +public=14012539 +mod=4862802614 +step = mod / 100 +for j in range(0, 100): + print "Testing from", step*j, " to ", step*(j+1), " (", j, "%)" + for i in range(j*step, (j+1)*step): + if (( i * public ) % mod) == 1: + print i + break diff --git a/crack.sh b/crack.sh new file mode 100644 index 0000000..0a17903 --- /dev/null +++ b/crack.sh @@ -0,0 +1,14 @@ +#!/bin/bash +public="14012539" +mod="4862802614" +for i in `seq 1 $mod` +do + let out=( $i * $public ) % $mod + if [ $out == 1 ] + then + echo "$i true" + exit 0 + else + echo "$i false" + fi +done