Hack Forums
Propitious | Lesson Two - Extension Spoofing - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45)
+--- Forum: Grayhat • Purple Team • Hybrid Security (https://hackforums.net/forumdisplay.php?fid=449)
+---- Forum: Beginner Hacking (https://hackforums.net/forumdisplay.php?fid=4)
+---- Thread: Propitious | Lesson Two - Extension Spoofing (/showthread.php?tid=2437243)

Pages: Pages 1 2


Propitious | Lesson Two - Extension Spoofing - -๖ۣۜDivine- - Apr 26, 2012

[Image: P4JKl.gif]

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 Propitious 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.

If you wish to apply for the class, please post here.

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


* - Magic‌ - Apr 26, 2012

Thanks for this its really helpful!


* - Noxx-dontoy1 - Apr 26, 2012

Love it <3 VERY HQ user... Great tut.


* - -๖ۣۜDivine- - Apr 27, 2012

Thanks guys, I appreciate your feedback.


* - tux1 - Apr 27, 2012

Thanks a lot for this, I bookmarked it for later.


* - Zayat96 - Apr 28, 2012

What can extension spoofing do??
Anyway, I bet its a great tutorial!


* - -๖ۣۜDivine- - Apr 28, 2012

(Apr 28, 2012 04:31 AM)Zayat96 Wrote:  What can extension spoofing do??
Anyway, I bet its a great tutorial!

If you actually watched it, you wouldn't have asked that question.


* - -๖ۣۜDivine- - May 3, 2012

Updated the thread with the list to other lessons. Post if you liked them 😊


* - K-shadow - May 7, 2012

i get a syntax error even tho i first manualy did it along with your directions and got the syntax error, then i copy pasted the whole thing and still got the same syntax error

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)

aaand i got this
a = u'\u202E[']<- thats the syntax error i got


* - -๖ۣۜDivine- - May 28, 2012

(May 7, 2012 11:46 AM)K-shadow Wrote:  i get a syntax error even tho i first manualy did it along with your directions and got the syntax error, then i copy pasted the whole thing and still got the same syntax error

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)

aaand i got this
a = u'\u202E[']<- thats the syntax error i got

Perhaps we aren't using the same version of python mate.


* - dsMadKilla11 - May 31, 2012

Your tuts are great as always.🙂

If you type 'mp3' in the new extension ,the server would be named as '.3pm'.So have to reverse it.
I also added a tiny checking code ( too simple) which will check if the renamed file exists.
Anyway I am not criticizing.Your contributions are invaluable to the HF community.
Any other features we can add


* - -๖ۣۜDivine- - May 31, 2012

I know mate, I mentioned in the lesson that it has to be typed backwards when I showed the manual method.


* - anonymous1470238956 - Jan 6, 2013

I want to join your lessons please :)


* - Ov3rlord - Apr 17, 2013

Thank you so much, was exactly what I was looking for :)


* - dhanu_Bhaskar - Jul 10, 2014

thanx for tutorial ... finally afrt long time search is over ..