Kilho.net

IT

Using Threads in Delphi

Here’s an easy way to use threads in Delphi. Just use synchronize properly 🙂 Function uses System.Classes, System.SysUtils, Vcl.Forms; procedure Wait(Proc: TProc); var Thread: TThread; begin Thread := TThread.CreateAnonymousThread(procedure() begin Proc; end); Thread.FreeOnTerminate := True; Thread.Start; while not Thread.Finished do…

Read more — Using Threads in Delphi
Notice

SecretDNS Update

Recently, due to concerns about SNI eavesdropping, I created and released SecretDPI and SecretSNI. There was a lot of feedback about having to run several programs separately, so I included them in SecretDNS, allowing DNS encryption and SNI eavesdropping protection…

Read more — SecretDNS Update
Notice

SecretSNI Release

A program that interferes with the monitoring and tampering of Server Name Indication (SNI). I created it because using SecretDPI, GoodbyeDPI, or MTU settings caused speed reductions. It fragments only the strings detected in SNI; all other packets work normally.…

Read more — SecretSNI Release
Notice

SecretDPI Release

A program that uses Deep Packet Inspection to prevent illegal surveillance and tampering. I made GoodbyeDPI into a GUI version for easier use. Delete the /vendor folder (GoodbyeDPI) and run SecretDPI.exe by itself to change the MTU and make it…

Read more — SecretDPI Release
IT

Getting the Access IP in AWS (PHP)

When using an Amazon server, retrieving the server IP returns the private IP address. So I made this to get the public IP address. <? if(in_array(substr($_SERVER[‘SERVER_ADDR’], 0, 3), array(‘172’))) if(strrpos(gethostname(), ‘.compute.internal’)!==false) $_SERVER[‘SERVER_ADDR’] = file_get_contents(‘http://169.254.169.254/latest/meta-data/public-ipv4’); echo $_SERVER[‘SERVER_ADDR’]; ?>

Read more — Getting the Access IP in AWS (PHP)