GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - healeycodes/unrandom: 🎲 Intercept and modify getrandom syscalls from a process (x86-64 Linux).

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
README.md
README.md
 
 
unrandom.c
unrandom.c
 
 

Repository files navigation

🎲 unrandom

My blog post: Making Python Less Random


Force getrandom syscalls from a process to return zeroes on x86-64 Linux.


Start a Python REPL. Then build and run getrandom:

gcc -o unrandom unrandom.c
./unrandom <python's pid>

Call os.urandom in the REPL:

>>> import os
>>> os.urandom(8)
b'\x00\x00\x00\x00\x00\x00\x00\x00'
>>> os.urandom(8)
b'\x00\x00\x00\x00\x00\x00\x00\x00'

About

🎲 Intercept and modify getrandom syscalls from a process (x86-64 Linux).

healeycodes.com/making-python-less-random

Topics

getrandomptracesyscalls

Resources

Readme
Activity

Stars

8 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.