zardus / preeny

Some helpful preload libraries for pwning stuff.
BSD 2-Clause "Simplified" License
1.57k stars 170 forks source link

Added gettimeofday() to detime.so #65

Closed ZetaTwo closed 5 years ago

ZetaTwo commented 5 years ago

./test/time Time: 1572342926 Time: 1572342926.702952 TZ: -0 min, DST: 0

LD_PRELOAD=./x86_64-linux-gnu/detime.so ./test/time Time: 0 Time: 0.0 TZ: -0 min, DST: 0

LD_PRELOAD=./x86_64-linux-gnu/detime.so PREENY_DEBUG=1 TV_SEC=10 TV_USEC=100 TZ_MINWEST=3 TZ_DSTTIME=1 ./test/time +++ time frozen at 0 Time: 0 +++ gettimeofday frozen at 10.100 +++ gettimeofday tz frozen at -3 minm, DST: 100 Time: 10.100 TZ: -3 min, DST: 1