Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- On decrypter payload https://github.com/grafchokolo/psgroove
- <iLLNESS> graf, is your payload to be used with psgroove?
- <g_chokolo> yeah, psgroove, it uses 2 stages
- <g_chokolo> boostrap is programmed into psgroove
- <g_chokolo> payload is sent to ps3 via ethernet
- <g_chokolo> payload is what does the real job :-)
- <g_chokolo> i did it that way because you cannot program psgroove with large piece of code
- <g_chokolo> bootstrap.bin have to be converted to C hex and inserted into psgroove descriptor
- <g_chokolo> i can upload my psgroove descriptor, it's no problem
- <g_chokolo> ok, here is my psgroove desc
- <g_chokolo> http://pastie.org/1368027
- <g_chokolo> just convert bootstrap.bin to payload.h with bin2hex tool i provided
- <g_chokolo> the bytes after payload.h doesn't matter, they are just dummies
- <g_chokolo> program your psgroove with this bootstrap
- <g_chokolo> bootstrap has one purpose, it received payload.bin from me via ethernet and runs it :-)
- <g_chokolo> this way i can run huge piece of code :-)
- <g_chokolo> and do not need to reprogram my psgroove everytime, have just to change payload and it does something different
- <g_chokolo> i'm using tcpdump to capture verything that comes back from ps3 and extract it then with pcap2bin
- <g_chokolo> you can also use wireshark if you want to
- <g_chokolo> payload.bin is sent to ps3 with sendfile tool i provided
- <g_chokolo> and a self to decrypt e.g. is also sent with sendfile via ethernet
- <g_chokolo> all data sent to ps3 is acked by ps3, to make sure that file transferred to ps3 is ok
- <g_chokolo> because sometimes a ethernet frame can get lost
- <g_chokolo> to be able to decrypt selfs you have first to edit main.c file and uncomment it, make sure only self decrypter will be called in main except mm and gelic
- <g_chokolo> to decrypt selfs, first run psgroove with programmed bootstrap
- <g_chokolo> wait some time till it runsa
- <g_chokolo> then send payload.bin
- <g_chokolo> data sent to ps3 should be acked,sendfle will give you feedback
- <g_chokolo> if it doesn't see any acks then there is a problem
- <g_chokolo> i think here it would be best to test it with your ps3
- <g_chokolo> when payload.bin is uploaded to ps3 it will be executed immediately
- <g_chokolo> if the payload.bin does self decryption then it waits now for you to send it some SELF file to decrypt :-)
- <g_chokolo> so send a SELF to ps3 with sendfile
- <g_chokolo> but before that make sure you start tcpdump to capture the data coming back from ps3 :-)
- <g_chokolo> because the data will contain the decrypted SELF segments :-)
- <g_chokolo> every decrypted self segment is sent using different Ethernet protocol field values
- <g_chokolo> i do it for one purpose, to make extracting decrypted segments easier
- <g_chokolo> here an example
- <g_chokolo> if a SELF has 2 encrypted segments, i send 1st decrypted segment with Ethernet protocol field value 0xBEEF, and the 2nd one i send with protocol (0xBEEF+1)
- <g_chokolo> so to extract the 1st segment from tcpdump pcap file i just use "pcap2bin -p 0xBEEF <pcap filename> <segment filename>"
- <g_chokolo> so to extract the 2nd segment from tcpdump pcap file i just use "pcap2bin -p 0xBEF0 <pcap filename> <segment filename>"
- <g_chokolo> and now you have 2 decrypted segments :-) which are impatient to be loaded into IDA for reversing, but that's not all :-)
- <g_chokolo> forgot to say. when self decrypter is done, ps3 should make 2 beeps :-)
- <g_chokolo> you need also the right load addresses for those segments in order to be able to reverse it
- <g_chokolo> self decrypter sends not only decrypted segments to you, it sends more data :-)
- g_chokolo> one of the packets sent to PC by self decrypter contains load address of segment, take a look at decrypt_self.c and you will understand what i mean
- <g_chokolo> this paxket is sent just before the decrypted data is sent
- <g_chokolo> so now you have everything to do reversing with IDA
- <g_chokolo> just load these segments into IDA at right addresses
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement