Fading Coder

One Final Commit for the Last Sprint

Writing Base64-encoded Webshells on Linux and Windows Systems

Overview This document outlines methods for writing webshells using base64 encoding on both Linux and Windows platforms. Linux Webshell Creation Prepare the payload. Encode it in base64 (recommended tool: http://www.hiencode.com). Split the encoded content into sgements and write each part separatel...

Installing and Configuring JDK on Linux Systems

Install JDK via Yum Package Manager To install Java using Yum, first list available Java packages: yum list java* Proceed to install a specific JDK version, such as OpenJDK 8: yum install java-1.8.0-openjdk.x86_64 After installation completes, verify the JDK installation: java -version Yum installs...

Essential Text Processing Tools in CentOS 7: grep, sed, and awk

Overview of the Three Essential Tools grep: Filters and searches for specific patterns in text. sed: Modifies and replaces content in files, particularly effective for line-based operations. awk: Analyzes and processses file content, especially powerful for column-based operations. Regular Expressio...

Essential Shell Scripting Tips and Tricks for Bioinformatics Workflows

Batch File Processing Example #!/bin/bash python preprocess_annotation.py -i wheat_annotation.gff3 -o wheat_annotation_filtered.gff4 base_fasta="wheat_transcripts.fasta" annotation_gff="wheat_annotation_filtered.gff4" motif_types=("G4" "C4" "A4" &quo...

Exploiting FILE Structure in glibc for Arbitrary Code Execution

The FILE structure in glibc, specifically _IO_FILE_plus, is central to many advanced exploitation techniques. These structures are linked via a global pointer _IO_list_all, forming a singly-linked list that includes the standard streams: _IO_2_1_stdin_, _IO_2_1_stdout_, and _IO_2_1_stderr_. Each FIL...

Linux Basic I/O: File Descriptors, dup2 Redirection, and the Everything-Is-A-File Model

File Descriptors: The Array Index Underpinning I/O Disk Files vs In-Memory Open Files Files stored persistently on storage are called disk files. When a file is opened by a process, it is loaded from disk into memory, becoming an in-memory open file. This relationship mirrors that of programs on dis...

Practical Sed Strategies for Line Manipulation

Removing Lines Adjacent to Patterns To remove the line immediately preceding and following a specific pattern, combine address ranges with flow control commands. sed -i -e '/ERROR/{n;d}' -e '$!N;/\n.*ERROR/!P;D' system.log Deleting the Preceding Line When only the line before a match is required to...

A Practical Guide to Installing Ubuntu 20.04 and Essential Development Software

System Installation for Ubuntu 20.04 Obtain the Ubuntu 20.04 LTS installation image from the official website. To create bootable media, use tools like dd on Linux or Rufus on Windows. Ensure your system's BIOS/UEFI is configured to boot from the USB drive. Partitioning Strategy When installing, you...

Deploying SmokePing for Network Latency Monitoring

Architecture Overview SmokePing is a latency monitoring tool that visualizes network performance through RRD (Round-Robin Database) graphs. Developed in Perl by Tobi Oetiker, it relies on RRDtool for data storage and graph generation, utilizing probing utilities like fping for ICMP-based measurement...

Understanding the container_of Macro in Linux Kernel Development

The container_of macro, defined in kernel.h, serves a crucial role in Linux kernel programming by enabling retrieval of a structure's address from its member's address: /** * container_of - Get the container structure from a member pointer * @ptr: Pointer to the structure member * @type: Type of the...