Thank you to the guys at HEGE supporting Badcaps [ HEGE ] [ HEGE DEX Chart ]

Announcement

Collapse
No announcement yet.

Dumping flash from HTC Desire 510

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Re: Dumping flash from HTC Desire 510

    I think it's important, when looking at the code that I upload, to remember it's designed for the phone to reboot. I believe a normal phone doesn't do this and the MicroSD card stuff could be completely removed, if you just wanted to plug it in and let it run. I think we could modify the code a bit. It's not what I would consider great code. It does it's job, but in a messy way, if you know what I mean. It could be cleaned up a bit and improved upon. I'm sure there's a few parts where we could write a function to do stuff, rather than just writing the same code 4 or 5 times in a row. Essentially, we could optimize it a bit.

    We could also set it up for maybe a push button, and configure the push button to stop the program from running. That way, instead of thrashing the MicroSD card, maybe just read the pin on startup, and then write the pin when the push button is pushed.

    Also, it expects a pin_num.txt to have the starting pin inside of it. This could be improved a bit too. Maybe check if the file exists, if it doesn't, then create the file. Finally, the library I'm using only supports FAT16 and FAT32. I believe there's experimental FAT12 support, but there's no ExFAT support, no ext1, ext2, ext3, ext4 support. Maybe we could find a better library or write code to support multiple filesystems? Just in case anyone wants to work on improving it I mean.

    I want to also see what happens through the USBSerial port stuff. I want to see if we can read the info to tell exactly when the phone reaches the login screen. And I want to monitor the data while I'm typing a pin. If it displays messages, such as incorrect pin entered, or successful pin entered, we can stop the program once it successfully logs in. There's gotta be some sort of way to do this I'd think. Then we don't have to sit there and watch the attempts.


    I just found out my neighbor, the one that says I'm his best friend, who's been coming over almost every day....he got busted for child porn on his computer. He kept on offering to babysit my daughter, but I got this weird feeling. I was changing her once and he came in and was watching me change her. He was talking to her, but I thought that was a bit odd. I mean, when I see someone changing a baby, I look a way! He gave me a book, said it was his absolute favourite book. Needful things by Stephen King. It's a good book, don't get me wrong, but in the book they talk about a 12 year old boy getting a hand job, in a bit graphical detail, which is definitely disgusting!!!

    What the fuck is up with people being into little kids like that??? Two people I know now, both who were in the Marine Corps (my neighbor and the guy who owned this cell phone) are into little kids! My wife's sister's husband, fuck-face, he's into little kids as well. He went to prison for 4 or 5 years for raping his 9 year old niece.
    -- Law of Expanding Memory: Applications Will Also Expand Until RAM Is Full

    Comment


      Re: Dumping flash from HTC Desire 510

      about filesystems.
      the sourcecode for the HDloader on the wii has support for Fat32,and EXT2/3

      Comment


        Re: Dumping flash from HTC Desire 510

        Okay. I have support for the FAT32 filesystem, but to my knowledge, no EXT2/3/4. I had to update the code for the SD library. I downloaded it from github. The one that comes with the Arduino, even though it says it's the same version, it doesn't support the same stuff. The one on github (same developer, same library, newer version) had more function calls and I was able to do what I wanted. Here's a link to the github page: https://github.com/greiman/SdFat

        It says Arduino 1.6x or higher is required, so I don't think I can use this library if I wanted to just use the arm GNU c compiler to cross-compile the code.

        I think another thing, I should modify the firmware to A) check to see if the pin file exists, if it doesn't, create it with 0000 in it, but also, check for a file like priopriatary_pins.txt or something, and if that exists, try those pins first. Then, people could download some list like the 100 most common pin numbers and the Teensy would check that first and try those. We'd need some config file to mark that they had been checked though.
        Last edited by Spork Schivago; 07-11-2017, 08:43 PM.
        -- Law of Expanding Memory: Applications Will Also Expand Until RAM Is Full

        Comment


          Re: Dumping flash from HTC Desire 510

          I guess I can only upload zip files and not tar.gz or tar.bz2 or tar.xz or .7z files here.

          But here's the source. If you hook it to a USB TTL to serial converter, in Linux, this is how I see the output:

          Code:
          screen /dev/ttyUSB0 19200
          Obviously, you'd replace ttyUSB0 with whatever your device node is. It's important that you pass the 19200 baud rate to screen or you'll get garbly gook, unless you edit the source code and change the baud rate to 9600. Then screen will read it without needing the baud rate, but on my PC, 9600 seemed a bit slow. 19200 is much faster.
          Attached Files
          -- Law of Expanding Memory: Applications Will Also Expand Until RAM Is Full

          Comment


            Re: Dumping flash from HTC Desire 510

            I bought the 6W/mk stuff. I hope that's going to be good enough. I almost went for the 14W/mk but that's really expensive. I'm also not sure what thickness I need, so I went for three, 0.5mm, 1.0mm, and 1.5mm. It came to a total of around 22$. If I went for the 14W/mk stuff, just the 1.5mm was 48$!

            https://www.newegg.com/Product/Produ...5179-_-Product

            I figure for a cell phone, the chips are small and might not need the 14W/mk stuff, and hopefully, the 6W/mk stuff will be just fine.
            -- Law of Expanding Memory: Applications Will Also Expand Until RAM Is Full

            Comment


              Re: Dumping flash from HTC Desire 510

              What do you guys think of the source code I uploaded? Once you unzip it, if you don't have Arduino installed, you can just open it in your favourite text editor. It's just a text file with an Arduino extension. Windows users might have some issues because of Windows files usually have a CR and LF for a new line, whereas Linux and other Unix like operating systems tend to use LF for a new line. For Windows users, usually opening the file in Wordpad instead of Notepad will make the file appear properly.

              Any suggestions on improvements? I was thinking of uploading it to Github so people could commit improvements.
              -- Law of Expanding Memory: Applications Will Also Expand Until RAM Is Full

              Comment

              Working...
              X