Adding HTTPS to a Website with Nginx
Adding HTTPS to a Website with NginxPlain HTTP traffic can be captured and read, and an intermediary can alter its contents. Chrome also marks sites without valid HTTPS as insecure. HTTPS protects the contents in transit and makes tampering detectable, so I wanted to enable it for my site.
The overall process is obtain an SSL certificate -> deploy it to Nginx -> set up an HTTP-to-HTTPS redirect (optional) -> configure Cloudflare (optional).
Obtain a certificate for your domainHTTPS us ...
Raspberry Pi Tinkering: An RF Light Switch
Raspberry Pi Tinkering: An RF Light SwitchA few days ago I found a Zhihu tutorial on building a smart switch from scratch. After asking the author a couple of questions, I wanted to try it myself. These notes record my setup and the problems I ran into. I recommend reading the original tutorial first and keeping these notes handy: some of its instructions had become outdated by the time I tried them.
Setting up the Raspberry PiThere are already plenty of guides to installing the operating syst ...
Practical Malware Analysis Notes (4)
Practical Malware Analysis Notes (4)LAB07-01.exeStatic analysisI started in IDA by opening the imports table. It gives a useful first impression of what the program can do before tracing its logic.
CreateServiceA, StartServiceCtrlDispatcherA, OpenSCManagerA, and other imports relate to system services, indicating system operations. InternetOpenUrlA and InternetOpenA open a URL; CreateMutexA and OpenMutexA create and open mutexes.
With those imports in mind, I opened the program’s main functio ...
Practical Malware Analysis (3)
Practical Malware Analysis (3)1: What is the address of DllMain?
2: In the Imports window, navigate to gethostbyname. What address does the imported function resolve to?
3: How many functions call gethostbyname?
4: Focus on the call to gethostbyname at 0x10001757. Can you determine which DNS request will be triggered?
At the DNS call, a string is pushed onto the stack beforehand. Following that reference leads to the requested name.
This is the address to query. The push is preceded by add ...
Practical Malware Analysis Notes (2)
Practical Malware Analysis Notes (2)LAB03-01.exe1. Find the malware’s imports and stringsI started with a strings search. The results include:
A URL appears, along with VideoDriver, ws2_32.dll, and vmx32to64.exe, whose name suggests converting video from 32-bit to 64-bit. There are also two registry keys, SOFTWARE\Microsoft\Windows\CurrentVersion\Run and SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders, associated with startup. Running it in Process Explorer and checking its D ...








