Просмотр полной версии : An image file to steal cookie ?
ghostshadow189
20.04.2006, 18:07
hi , I saw some XSS tutorial video files of antichat.ru and I always see that antichat.ru use image files like .gif or .jpg to steal cookie . I wonder how can you creat these image file ? How does it work ?
Thanx for ur help and ur suggest :D
Stronger_se
20.04.2006, 18:13
it's not options of image ... just scripting
so read more about "sniffer"
antichat.ru use image files like .gif or .jpg to steal cookie
it's not an image, it's php
we use .htaccess file to execute .gif extention as a php script
You may see a not exactly source code of this sniffer on main page: http://antichat.ru/sniff/
ghostshadow189
22.04.2006, 07:22
thanx i think i understood . It's a php script but we can use .htaccess to execute .jpg file like a .php file :D
make a php script, save it as a gif (jpg, png, etc...) file
then make a .htaccess file with this code:
<Files "s.gif">
AddType application/x-httpd-php .gif
</Files>
ant put this file in the same directory with you "image"
if you are allowed to use htaccess on your server, openning your "image" you will execute your php code in it
ghostshadow189
22.04.2006, 17:50
thanx for ur help . But I have another question when I see hack-info tutorial video file . In this tutorial I saw that u upload an image from ur comp and use it for your avatar and to deface . So it mean an image will run on this site but maybe .htaccess of this site not allow us run image file as php file .
And also , when we upload an image from our comp to use for our avatar and there some code in this image to deface the site , but if the site chmod index file is not writeable (for example 644) , we cant make an image edit index file so we cant deface it ?
ghostshadow189
22.04.2006, 18:19
oh , I also wonder that how can u edit the image file and after that it still display correctly :D
give me the link of the video
ghostshadow189
22.04.2006, 19:52
oh this is the video of this site : http://video.antichat.ru/file37.html
vBulletin® v3.8.14, Copyright ©2000-2026, vBulletin Solutions, Inc. Перевод: zCarot