Skip to content

relatively short programs I made to achieve various purposes; test, study, during work, etc.

License

Notifications You must be signed in to change notification settings

BenYoo-ben/Short_Programs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Some useful mini-programs(tools) for debugging

Network

C-FileTransfer

FTP like c program.
Simply read/write on a socket to transfer a file.
Support receive & send.

GoFileServer

Very simple file send & receive program written in golang

MiniJavaFileServer

TCP based JAVA file server.
Server communicates with its clients to support: file search, download, upload and etc.

URLFilter

Implementation of DNS protocol.
Send DNS request to a DNS server asking for specific host.
add filter rules in iptables to drop traffic from the host.
use temporary file in /var to keep track of filtered IP lists.

OS

DynamicIptables

prints results of iptables command in specific durations.
could be useful when you have to see rules that packets are going through

Smaptrack

this program keeps track of certain process's smap.
although smap doesn't offer you best information about memory being used
it's possible to make quite accurate guesses on the flow of memory in your process.

C_snippets

null_checked_sprintf

sprintf~ like functions results in undefiend behavior when NULL input is given.
This function can check for NULL values before running sprintf~ like functions (implented through va_args, va_list, etc)

daemon

simple illustration of creating a daemon process. Detaching terminal, session leader operations, redirecting stdios and logging pid.

SystemResourceCheck

A shell script for quick anlysis of current system usage. Checks: load average, cpu usage, memory usage, zombie/dead processes and etc.

About

relatively short programs I made to achieve various purposes; test, study, during work, etc.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published