Wednesday, July 10, 2019

Extracting PPP Password from Router Config Backup


When Exetel posted me the ZTE ZXHN H268A home gateway router, they were also supposed to supply me the PPP username and password, but they never did. And I was not about to give them a call because their support number queue is almost always 90+-person long. I thought, how hard can it be to get the piece of information straight from the router itself?

For one, there are utilities out there that can supposedly reveal or unmask the password hidden under those asterisks. Don't want to risk downloading malware, so ditched that option. Then again, what worked 10 years ago doesn't mean it'll still work now. I'm sure the web designers have gotten wise to this. I tried looking at the page source. For some reason, the info is not there. Pretty sure the info was sent, but just not being displayed in the source. Took some packet captures using Wireshark. This time I managed to get the username, but not the password. Very strange. Maybe that particular parameter was not being sent at all, since it's not required to be displayed on the webpage anyway Was about to dig deeper when I thought of something. Instead of searching for the password parameter, why not generate a configuration dump/backup and focus on that instead. The password should definitely be present in the backup file.

I was hoping for a plaintext XML file. Unfortunately, it was a binary config.bin. Loading it in an ASCII/hex editor revealed nothing. Now, some guys have tried to crack ZTE's config.bin. The theory is that the config backup file is encrypted using AES ECB using the device serial number as the key.

Did some more digging and found a utility called RouterPassView that managed to decrypt config.bin. It's able to decrypt a whole lot of other formats, too! Ah, what would I do without the internet.

Thursday, July 4, 2019

Lemon Bars from /r/Old_Recipes

Ingredients:

  • 2 cups flour
  • 1 cup butter or margarine
  • 1/2 cup powdered sugar

Cream and press into ungreased 9 x 12 pan.
Bake for 20 minutes at 350 degrees.

Beat 4 eggs, then add:

  • 5 - 7 tablespoons lemon juice
  • 2 cups sugar
  • 4 tablespoons flour
  • 1/2 teaspoon salt

Pour on baked crust.
Bake for 25 minutes at 350 degrees.
Sprinkle with powdered sugar while still warm.

Wednesday, July 3, 2019

Four-Ingredient Peanut Butter Cookies from /r/Old_Recipes

Ingredients:

  • 1 cup peanut butter
  • 1 cup sugar
  • 1 egg
  • 1/2 tsp vanilla


Mix thoroughly. Roll into small 2-inch balls. Place on ungreased cookie sheet. Press two ways with fork to flatten slightly.

Bake 350 degrees. 12-15 minutes. Makes 30.

A few tips:

  • Reduce baking time to 8-9 minutes for a softer cookie.
  • Do not remove from sheet for a couple minutes to prevent crumbling.
  • Roll into small 2 inch balls.