Skip to main content

Posts

Showing posts from July, 2021

Golang Parallel Test and Subtest Execution

 Introduction In this section I will discuss the basics of unit testing, subtesting and parallel test execution in Go. Also I'm gonna demonstrate a unit test package  stretchr / testify which makes testing the code extremely easy. This post will be full of code snippets and their descriptions, so if you face any difficulties leave a comment at the end of the blog and I will get back to you as soon as possible. Unit Testing It is a methodology and language independent concept where we perform testing on all the code components like functions, methods, variables etc. The source code is tested for an objective purpose to prove that each unit of code is performing as expected. For more details you can visit Unit test basics . Go has it's own built-in testing package which needs to be imported while writing unit tests. Lets get started with some code. First of all I'm gonna create a directory ` jsonserializer ` and create a file ` serializer.go ` withing that. Add the followi

Reverse engineering - Get root shell access to D-Link router using UART(Get WiFi password)

Introduction Hello there. In this article I will be showing you a very commonly used reverse engineering and hardware hacking technique to gain root access to the shell of a WiFi router and retrieve the WLAN SSID and password. It also works for many other kinds of embedded devices too but here I will be showing you my experience with a WiFi router D-Link DSL-2730U. This is my first blog ever so it is a brand new experience for me. Although I will do my best to make this content a very valuable and interesting one. NOTE: If you find any incomplete, missing or even misleading information here, then please put it in the comments. I would love to learn even more. Prerequisites It is best if you have a fair amount of experience in the following: Linux fundamentals and sysadmin skills. Fair amount of hands-on experience with Arduino or Raspberry Pi projects. Building custom Linux systems for embedded devices(Buildroot, Yocto, Busybox, etc.). Protocols like - UART, SPI, I2C, etc. You do not n