Automating Image Hosting for Markdown
Automating Image Hosting for MarkdownI used to put my images on sm.ms, a public image host with an open API. I even wrote a script to upload the images and replace the links in my Markdown. The service’s limits became frustrating, though: uploads were restricted per minute and capped at 20 images per hour. I decided to host them in my own GitHub repository instead and consider a VPS later.
I wrote another script to automate the new workflow: paste image -> put image in git folder -> run au ...
Practical Malware Analysis Notes (1)
Practical Malware Analysis Notes (1)Analysis of LAB01-01.dll and LAB01-01.exeFirst, I submitted the file to www.virustotal.com for online analysis:
Most antivirus engines identify it as a Trojan.
The result for LAB01-01.exe:
The executable receives a result similar to the DLL.
Next, I moved the samples into a virtual machine for closer inspection.
LAB01-01.dll is not packed: it is an ordinary dll compiled with VS6. Its code section is easy to identify, and it also has a relocation section.
...
Computer Storage Experiment
Partition Tables and File StructureTask 1: MBS Boot SectorReading commandsIn MS-DOS, start debug and use the INT 13 disk service to read the MBS boot-sector information:
123456789-A 100mov ax,0201mov bx,0600mov cx,0001mov dx,0080int 13int 3-G;通过查看运行的汇编指令来判断是否执行-D 600 800;通过查看数据的方式来查看刚才保存进入缓冲区的数据
The MS-DOS screen cannot scroll back through the output, so I displayed the data in two parts and joined the screenshots.
Interpreting the dataThe master boot record (MBR) has the following layout:
...
Pitfalls Setting Up Go on WSL
Pitfalls Setting Up Go on WSLAt the time, getting a Go environment together on Windows seemed to require a lot of separate installations. Without a package manager like apt, working in Linux sounded more appealing. I chose Ubuntu 18.04 LTS under WSL with VS Code and wrote down the snags I encountered.
The following applies only to Windows 10 version 1903 and later.
Installing WSLThere are plenty of detailed WSL installation guides online, so I will only outline the steps here.
Open Windows Progr ...
My Struggle with the Firewall
My Struggle with the FirewallI kept running into the same problem while studying: Baidu was not turning up the material I needed, while Wikipedia and experienced developers’ blogs were much easier to find through Google. A reliable way to reach those resources started to feel essential.
After one too many searches for a usable free VPN, I decided to rent a VPS and build a service of my own. What follows is my record of the tutorials, experiments, and things that went wrong. My image-hosting scri ...






