Blog: 2025-11-28: Difference between revisions

From razwiki
Jump to navigation Jump to search
(Created page with "This cgi script <pre> hack $ cat cgi-bin/hello.py #!/usr/bin/env python3 print('Content-type: text/html') print() print('<h2>WHOA</h2>') </pre> This server command python3 -m http.server --cgi 8000 Good https://stackoverflow.com/questions/30516414/how-to-run-cgi-hello-world-with-python-http-server")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 14: Line 14:


Good https://stackoverflow.com/questions/30516414/how-to-run-cgi-hello-world-with-python-http-server
Good https://stackoverflow.com/questions/30516414/how-to-run-cgi-hello-world-with-python-http-server

wiki.cgi #idea

---

Got the windows vm working on m4 macbook air. Needed to use Win11_25H2_English_Arm64.iso. Also needed to go into the settings and remove the cd and re-add it, for some reason - feels like a virtualbox bug.

Anyways I found indeed os.mkfifo is not available on windows. Here's what is available:

[[File:Screenshot 2025-11-28 at 10.32.38 PM.png|frameless|center]]

Latest revision as of 23:45, 28 November 2025

This cgi script

hack $ cat cgi-bin/hello.py 
#!/usr/bin/env python3
print('Content-type: text/html')
print()
print('<h2>WHOA</h2>')

This server command

python3 -m http.server --cgi 8000

Good https://stackoverflow.com/questions/30516414/how-to-run-cgi-hello-world-with-python-http-server

wiki.cgi #idea

---

Got the windows vm working on m4 macbook air. Needed to use Win11_25H2_English_Arm64.iso. Also needed to go into the settings and remove the cd and re-add it, for some reason - feels like a virtualbox bug.

Anyways I found indeed os.mkfifo is not available on windows. Here's what is available:

Screenshot 2025-11-28 at 10.32.38 PM.png