Browse Source

unredact.py behaves if there's a .git inside darkive

also sorts messages (latest at bottom)
master
The Dod 10 years ago
parent
commit
44a2edd9c5
  1. 70
      output.txt
  2. 6
      unredact.py

70
output.txt

@ -1,16 +1,8 @@
### Players ### Players
# Zabadee O'Mally (zayo, @zayo):
A defrocked ███████████ priest turned confession analysis contractor
(CAC).
# Daan II (daanii, @black_puppydog): # Daan II (daanii, @black_puppydog):
██ ███ ███████ of ██████. ██ ███ ███████ of ██████.
# Trantor Alexis (talex, @talex):
A confirmed human resident of █████████ ███████████ and ChurchApproved
DepescheProzessor since 2048.
# Rabbi Yoav (broyo, @thedod): # Rabbi Yoav (broyo, @thedod):
Confession sensor technician (CST) and ChurchApproved Rabbi (CAR) Confession sensor technician (CST) and ChurchApproved Rabbi (CAR)
[technically, a priest] in the Geneva parish. Born 2061 in Kibbutz [technically, a priest] in the Geneva parish. Born 2061 in Kibbutz
@ -19,41 +11,49 @@
(mainly due to family and origin). 77% heterosexual. No other known (mainly due to family and origin). 77% heterosexual. No other known
dominant deviations. dominant deviations.
# Trantor Alexis (talex, @talex):
A confirmed human resident of █████████ ███████████ and ChurchApproved
DepescheProzessor since 2048.
# Forth Inc. (forth, @forth): # Forth Inc. (forth, @forth):
Registered ████████. Registered ████████.
# Zabadee O'Mally (zayo, @zayo):
A defrocked ███████████ priest turned confession analysis contractor
(CAC).
# Sandy Claws (sandyclaws, @sandyclaws): # Sandy Claws (sandyclaws, @sandyclaws):
From the Magic Tuna Show (ask your kids). From the Magic Tuna Show (ask your kids).
### Redacting "fake redaction" to 2 trustees ### Redacting "fake redaction" to 2 trustees
{"__public__": {"recipients": ["bob", "carol"], "cipher": {"talex": {"sender": "alice", "trustees": ["talex", "daanii"],
[["W7MZY1y1", "mnb7", "TQY=", "sT6ZUgYlTlkIaog69AbAFgYCydQ/Na335paz"], "recipients": ["bob", "carol"], "msgid": "DA14349033735293",
["mCs=", "KalY", "7uvPaTg=", "D4Nc", "jaiB"]], "sender": "alice", "subject": "Is this thing on?", "pads": {"talex": [["nilCLhxW",
"subject": "Is this thing on?", "trustees": ["forth", "zayo"], "vxVC", null, null], ["ssw=", null, null, "aLgo", "kz41"]]}},
"msgid": "DA14348757490111"}, "forth": {"recipients": ["bob", "__to__": {"sender": "alice", "trustees": ["talex", "daanii"],
"carol"], "pads": {"forth": [[null, "9BmP", null, "recipients": ["bob", "carol"], "msgid": "DA14349033735293",
"U6gRsJCtrM+AiB6yFpBI9JCKK0K31zt/BAA7"], ["+Vg=", "UMYt", "moOmB1M=", "subject": "Is this thing on?", "pads": {"talex": [["nilCLhxW",
"duwp", null]]}, "sender": "alice", "subject": "Is this thing on?", "vxVC", null, null], ["ssw=", null, null, "aLgo", "kz41"]], "daanii":
"trustees": ["forth", "zayo"], "msgid": "DA14348757490111"}, "zayo": [[null, null, "UIQ=", "IaWUU4WdLyGRmD3h4tXXzLDfB9Qogp9CAzps"], [null,
{"recipients": ["bob", "carol"], "pads": {"zayo": [["AtxsRC7Q", null, "1RK6", "wvfhz+4=", null, null]]}}, "__public__": {"sender": "alice",
"LHU=", null], [null, null, null, null, "7Nrk"]]}, "sender": "alice", "cipher": [["x0Y3CW4z", "0Xo2", "Mfc=",
"subject": "Is this thing on?", "trustees": ["forth", "zayo"], "wzMcsRMVzbcZeqtpAENfLiZX5UKgYAnK4azk"], ["078=", "rH3P", "tp+IoYU=",
"msgid": "DA14348757490111"}, "__to__": {"recipients": ["bob", "Eddd", "8kxQ"]], "trustees": ["talex", "daanii"], "recipients":
"carol"], "pads": {"forth": [[null, "9BmP", null, ["bob", "carol"], "msgid": "DA14349033735293", "subject": "Is this
"U6gRsJCtrM+AiB6yFpBI9JCKK0K31zt/BAA7"], ["+Vg=", "UMYt", "moOmB1M=", thing on?"}, "daanii": {"sender": "alice", "trustees": ["talex",
"duwp", null]], "zayo": [["AtxsRC7Q", null, "LHU=", null], [null, "daanii"], "recipients": ["bob", "carol"], "msgid":
null, null, null, "7Nrk"]]}, "sender": "alice", "subject": "Is this "DA14349033735293", "subject": "Is this thing on?", "pads": {"daanii":
thing on?", "trustees": ["forth", "zayo"], "msgid": [[null, null, "UIQ=", "IaWUU4WdLyGRmD3h4tXXzLDfB9Qogp9CAzps"], [null,
"DA14348757490111"}} "1RK6", "wvfhz+4=", null, null]]}}}
# >>> Unredaction for trustee: forth # >>> Unredaction for trustee: talex
██████ not ██ █████████ You're not ██ ███████████████████████████
as you think you ███ as ███ █████ you are
# >>> Unredaction for trustee: zayo # >>> Unredaction for trustee: daanii
You're ███ as ███████████████████████████ ██████ ███ as █████████
██ ███ █████ ███ are ██ you think ███ ███
(one of them has utf-8 bloat) (one of them has utf-8 bloat)

6
unredact.py

@ -54,8 +54,10 @@ if __name__=='__main__':
if not os.path.isdir('darkive'): if not os.path.isdir('darkive'):
print('No "darkive" folder. You should run daget.py first') print('No "darkive" folder. You should run daget.py first')
sys.exit(1) sys.exit(1)
msgs = [m for m in os.listdir('darkive') msgs = [m for m in sorted(os.listdir('darkive')) # Latest at bottom
if m!='corrupt' and os.path.isdir(os.path.join('darkive',m))] if m!='corrupt' and
not m.startswith('.') and # Leave .git alone ;)
os.path.isdir(os.path.join('darkive',m))]
if not msgs: if not msgs:
print('No messages in "darkive" folder. You should run daget.py first') print('No messages in "darkive" folder. You should run daget.py first')
sys.exit(0) sys.exit(0)

Loading…
Cancel
Save