Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

python server to inspect php sessions

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 PHPUnserialize.py
Octocat-spinner-32 README.md
Octocat-spinner-32 TODO
Octocat-spinner-32 __init__.py
Octocat-spinner-32 conf.py
Octocat-spinner-32 ejabberd_auth.py
Octocat-spinner-32 receiver.py
Octocat-spinner-32 session_inspector.py
README.md

Blog Post:

Inspecting PHP Sessions From Python:

Usage:

python receiver.py

Commands:

isauth

isauth session_id1 session_id2 session_id3

returns 0 or 1 if the user of that session id is authenticated

each line of the response corresponds to one of the key passed

the lines are ended by \r\n

quit

closes the connection to the server

sample session:

telnet localhost 3002
isauth oglnp9phvn8ac04obdqjk6dko3
0
isauth bj6sc485t9s46o57qpngod5lm7
1
isauth bj6sc485t9s46o57qpngod5lm7 oglnp9phvn8ac04obdqjk6dko3 n63o4uk297c49131dcdg0h7g72
1
0
1
quit
Something went wrong with that request. Please try again.