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

☆ Antagonism | Lesson Two - Extension Spoofing ☆

[img]http://desmond.imageshack.us/Himg515/scaled.php?server=515&filename=antagonism.jpg&res=medium[/img]


Awaken. You have been lost for too long, buried, in the mist of unknown shadows. Awaken. Your cries have been heard and they shall not be neglected. Come forward. You are grasping in the dark, blind for what is before you. Awaken, for I shall be your eyes. Call my name, and I will breach the darkness in path before you. Take my hand, and I will be the light that illuminates your journey. Come forward, and walk with us, for we are the vanguard of your purification. Dance in the rhythm of silence.



Welcome. I am the head of Antagonism beginner hacking classroom, and I will be teaching you from now on. You will post in this thread what you want to learn about, and what gets most votes shall be accepted for the next class. Everyone who applies for that class shall be invited to join the class and PM-ed with my Team Viewer information. Lessons will be recorded, and posted publicly so everyone who missed them can watch the video.

Second lesson, Extension spoofing:

I have covered everything you need to know about extension spoofing and how it works. I am showing how it is done manually and how to code your very own extension spoofer.





Please note that hypercam didn't record the Team Viewer window and questions people were asking me. So if you hear me talk something random, I'm actually reading and replying to their questions or requests to repeat.

Source code of the Extension Spoofer I coded:
Code
import os
a = u'\u202E'
path = raw_input("Please input the path to the directory of the file (C:\users\-Divine\Desktop for example): ")
name = raw_input("What is the name of your file?: ")
curr = raw_input("What is the current extension of the file?: ")
extension = raw_input("What is the new extension you want? (Example: exe, txt, png..): ")
os.chdir(path)
name2=name+'.'+curr

os.rename(name2, name+a+extension+'.'+curr)

Other Lessons can be found here.
this is awesome , thanks :) . very nicely explained .
(Dec 4, 2012 06:29 AM)Py7h0n Wrote:  this is awesome , thanks :) . very nicely explained .

I'm glad you liked it mate, thanks for stopping by and commenting.
loving this. thank you so much looking forward to other posts
also if you are lazy you can just replace a .exe extension with .scr XD
here is one thats visual basic based if anyone wants source for it.

Just name it "whatever.vbs"

Code
Call Spoof
Sub Spoof()
dim filePath,fileName,exten,FileLen,revExten,dest,NewFileName
set fs = CreateObject("Scripting.FileSystemObject")
filePath=inputbox("Enter The FilePath")
exten=inputbox("Enter the Extension to spoof" & vbCrlf & _
"Example : .jpg, .mp3 , .avi , etc..")
fileName=fs.GetFileName(filepath)
filePath=fs.GetParentFolderName(filepath)
FileLen=Len(fileName)-4
Dim spclChar
spclChar = ChrW(8238)
revExten=StrReverse(exten)
NewFileName=inputbox("Enter the new file name max 5 chars")
dest=NewFileName & spclChar & revExten & mid(fileName,FileLen+2)

fs.copyFile filePath & "\" & Filename,filePath & "\" & dest
msgbox "Extension Spoofed Successfully!!",vbInformation
end sub

The first question you'll answer will be to enter the filepath but make sure you include the filename with extension. for example C:\Users\hand0fg0d\Desktop\123.jpg

The second question is asking which extension you would like to make the new file appear as but make sure you add the dot to the file extension. example would be ".jpg" not just jpg

The third question asks what you would like the new file to be named, it does have the current limit of 5 characters but you can change that if you like.

hope this helps

btw this was written by someone named DJ MAK
(Dec 28, 2012 10:40 PM)hand0fg0d Wrote:  here is one thats visual basic based if anyone wants source for it.

Just name it "whatever.vbs"

Code
Call Spoof
Sub Spoof()
dim filePath,fileName,exten,FileLen,revExten,dest,NewFileName
set fs = CreateObject("Scripting.FileSystemObject")
filePath=inputbox("Enter The FilePath")
exten=inputbox("Enter the Extension to spoof" & vbCrlf & _
"Example : .jpg, .mp3 , .avi , etc..")
fileName=fs.GetFileName(filepath)
filePath=fs.GetParentFolderName(filepath)
FileLen=Len(fileName)-4
Dim spclChar
spclChar = ChrW(8238)
revExten=StrReverse(exten)
NewFileName=inputbox("Enter the new file name max 5 chars")
dest=NewFileName & spclChar & revExten & mid(fileName,FileLen+2)

fs.copyFile filePath & "\" & Filename,filePath & "\" & dest
msgbox "Extension Spoofed Successfully!!",vbInformation
end sub

The first question you'll answer will be to enter the filepath but make sure you include the filename with extension. for example C:\Users\hand0fg0d\Desktop\123.jpg

The second question is asking which extension you would like to make the new file appear as but make sure you add the dot to the file extension. example would be ".jpg" not just jpg

The third question asks what you would like the new file to be named, it does have the current limit of 5 characters but you can change that if you like.

hope this helps

btw this was written by someone named DJ MAK

Thanks for pointing it out mate. Thanks for the feedback.
I lost access to my account guys. I made temp account. I hope to resolve this soon.
Great guide. HQ member and great guides.
Divine, you are such an HQ member. You deserve a lot more attention from these lessons.

- Vandal
[Image: giphy.gif]
(Jan 3, 2013 07:18 PM)Vandal Wrote:  Divine, you are such an HQ member. You deserve a lot more attention from these lessons.

- Vandal

Glad you think so mate. Thanks for the feedback.
Awesome. Simple but powerfull. Kepp it up.
Awesome one, Thanks Divine,

Antagonism rocks again.
Rain maker.
Awsome nice tut, I was recently directed to your main page listing with all the tuts and gonna watch them All! Thx
You can always view all of my threads and find my tutorials there. Thanks for the feedback.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by StanleyOct 30, 2025 04:59 PM 3 121 Oct 30, 2025 04:59 PM
Last Post: leste
by Harrison5678Oct 31, 2024 06:22 PM 2 159 Oct 31, 2024 06:22 PM
Last Post: Ross123
by Vos_DesperoJun 5, 2019 05:52 PM 3 216 Jun 5, 2019 05:52 PM
Last Post: Practical