BrowseSpy - Code developed to steal certain browser config files (history, preferences, etc)


Be sure to change the FTP variables throughout the code, these variables contain the username, password, & IP address of the FTP server which receives the files.

This code will do the following:

  1. Copy itself into the %TMP% directory & name itself ursakta.exe
  2. Add a registry entry to execute itself each time the user logs in
  3. Verify which browser the user is using (Chrome, Firefox or Brave)
  4. Search for files within the Chrome, Firefox, or Brave browser directories
  5. Create a directory on our FTP server then send the files in the browser's directory to the FTP server

Cross Compiling with MingW on Linux

Install command with Apt:

  • sudo apt-get install mingw-w64


  • x86_64-w64-mingw32-gcc *input file* -o *output file* -lwininet -lversion


  • i686-w64-mingw32-gcc *input file* -o *output file* -lwininet -lversion

From the Victim's Perspective:

Registry entry:

File activity:

FTP connection:

Detection Rate:

This detection rate is after stripping the executable with strip --strip-all *filename.c*




August 18, 2020


Hakin9 TEAM
Hakin9 is a monthly magazine dedicated to hacking and cybersecurity. In every edition, we try to focus on different approaches to show various techniques - defensive and offensive. This knowledge will help you understand how most popular attacks are performed and how to protect your data from them. Our tutorials, case studies and online courses will prepare you for the upcoming, potential threats in the cyber security world. We collaborate with many individuals and universities and public institutions, but also with companies such as Xento Systems, CATO Networks, EY, CIPHER Intelligence LAB, redBorder, TSG, and others.
Notify of

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Inline Feedbacks
View all comments
© HAKIN9 MEDIA SP. Z O.O. SP. K. 2023