Using OneRNG to affect Windows entropy
redneonglow
danq at runbox.com
Wed Aug 29 13:16:29 BST 2018
If you want to have the random variables as originally described in this thread, you will not be able to use filegen as it interferes with rnd. Instead, you can create a batch file, with no worries about malware and packed executables, and run it minimized in your startup folder:
curl.exe --max-time 3 --output 1.bin http://127.0.0.1:48879
curl.exe --max-time 3 --output 2.bin http://127.0.0.1:48879
curl.exe --max-time 3 --output 3.bin http://127.0.0.1:48879
curl.exe --max-time 3 --output 4.bin http://127.0.0.1:48879
curl.exe --max-time 3 --output 5.bin http://127.0.0.1:48879
curl.exe --max-time 3 --output 6.bin http://127.0.0.1:48879
curl.exe --max-time 3 --output 7.bin http://127.0.0.1:48879
curl.exe --max-time 3 --output 8.bin http://127.0.0.1:48879
curl.exe --max-time 3 --output 9.bin http://127.0.0.1:48879
curl.exe --max-time 3 --output 10.bin http://127.0.0.1:48879
cat 1.bin | tr -dc a-zA-Z0-9 > 1.e
setx ONERNG1 /f 1.e /a 0,0
cat 2.bin | tr -dc a-zA-Z0-9 > 2.e
setx ONERNG2 /f 2.e /a 0,0
cat 3.bin | tr -dc a-zA-Z0-9 > 3.e
setx ONERNG3 /f 3.e /a 0,0
cat 4.bin | tr -dc a-zA-Z0-9 > 4.e
setx ONERNG4 /f 4.e /a 0,0
cat 5.bin | tr -dc a-zA-Z0-9 > 5.e
setx ONERNG5 /f 5.e /a 0,0
cat 6.bin | tr -dc a-zA-Z0-9 > 6.e
setx ONERNG6 /f 6.e /a 0,0
cat 7.bin | tr -dc a-zA-Z0-9 > 7.e
setx ONERNG7 /f 7.e /a 0,0
cat 8.bin | tr -dc a-zA-Z0-9 > 8.e
setx ONERNG8 /f 8.e /a 0,0
cat 9.bin | tr -dc a-zA-Z0-9 > 9.e
setx ONERNG9 /f 9.e /a 0,0
cat 10.bin | tr -dc a-zA-Z0-9 > 10.e
setx ONERNG0 /f 10.e /a 0,0
del 1.bin
del 2.bin
del 3.bin
del 4.bin
del 5.bin
del 6.bin
del 7.bin
del 8.bin
del 9.bin
del 10.bin
del 1.e
del 2.e
del 3.e
del 4.e
del 5.e
del 6.e
del 7.e
del 8.e
del 9.e
del 10.e
Note though that if rnd is not running, curl will fail and the variable will not change. Otherwise, curl will take 3 seconds of data from rnd and, using cat and tr from GnuWin32, to strip anything not an alphanumeric value, and set them as variables for processes run in the future.
More information about the Discuss
mailing list