bigendiansmalls / passticket-tools

Tools for unmasking - parsing - and creating racf passtickets
MIT License
7 stars 2 forks source link

unmask_passticket.py #2

Open HeadleyThompsett opened 3 years ago

HeadleyThompsett commented 3 years ago

Thanks for this, but it seems overly complex. How about

!/bin/rexx

Arg mask . key = "BBFCD18E826660B6"x Say C2x(BitXOR(X2c(mask),key)) Return

bigendiansmalls commented 3 years ago

Yes it was :) Haven’t gotten around to updating. If you’d like to submit a PR, will test and pull.

On Apr 6, 2021, at 16:23, HeadleyThompsett @.***> wrote:



Thanks for this, but it seems overly complex. How about

!/bin/rexx

Arg mask . key = "BBFCD18E826660B6"x Say C2x(BitXOR(X2c(mask),key)) Return

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/bigendiansmalls/passticket-tools/issues/2, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADJCCSGMLSOQ43VCMUBSRMTTHN3S5ANCNFSM42PQPXMQ.

bigendiansmalls commented 3 years ago

Although we do this offline, not on the system - so need python vs rexx

On Apr 6, 2021, at 16:23, HeadleyThompsett @.***> wrote:



Thanks for this, but it seems overly complex. How about

!/bin/rexx

Arg mask . key = "BBFCD18E826660B6"x Say C2x(BitXOR(X2c(mask),key)) Return

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/bigendiansmalls/passticket-tools/issues/2, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADJCCSGMLSOQ43VCMUBSRMTTHN3S5ANCNFSM42PQPXMQ.

HeadleyThompsett commented 3 years ago

I wish I knew enough about python to code this in python, but since I have rexx installed on my linux & windows machines & don't have python on any of my mainframes, this seemed better.

But here is similar in bash..

!/bin/bash

mask=0x${1:-"0123456789abcdef"} key=0xBBFCD18E826660B6 printf "%X\n" "$(( $mask ^ key ))"

bigendiansmalls commented 3 years ago

If it’s just an xor with a static key, I can write it and test it out.

On Apr 6, 2021, at 20:54, HeadleyThompsett @.***> wrote:



I wish I knew enough about python to code this in python, but since I have rexx installed on my linux & windows machines & don't have python on any of my mainframes, this seemed better.

But here is similar in bash..

!/bin/bash

mask=0x${1:-"0123456789abcdef"} key=0xBBFCD18E826660B6 printf "%X\n" "$(( $mask ^ key ))"

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/bigendiansmalls/passticket-tools/issues/2#issuecomment-814543391, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADJCCSHG7JF2X3E4HW24RDDTHO3NBANCNFSM42PQPXMQ.