Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Looking for a HTML / CSS image trick

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Web Development
View previous topic :: View next topic  
Author Message
Burningmace
Grandmaster Cheater
Reputation: 5

Joined: 17 Feb 2008
Posts: 520
Location: Inside the Intel CET shadow stack

PostPosted: Sun Oct 17, 2010 12:04 pm    Post subject: Looking for a HTML / CSS image trick Reply with quote

I'm coding something that acts as a web server as part of its functionality, and I'm using embedded base64 images to make my job easier. For example:
<img src="data:image/gif;base64,R0lGODlhEAAQAHAAACH5BAEAANgALAAAAAAQABAAhwAAAAAAMwAAZgAAmQAAzAAA/wArAAArMwArZgArmQArzAAr/wBVAABVMwBV...... " />

The problem is that in certain circumstances that image needs to be used in about 12,000 places in the document. In that case I end up with a page size exceeding 20MB, which is obviously unacceptable.

I know I could place the embedded image in a single span element and duplicate it on the client side using JavaScript, but I'd much rather use CSS or HTML to do it since JS isn't always enabled.

Any ideas?

_________________
It's not fun unless every exploit mitigation is enabled.
Back to top
View user's profile Send private message
justa_dude
Grandmaster Cheater
Reputation: 23

Joined: 29 Jun 2010
Posts: 891

PostPosted: Sun Oct 17, 2010 2:42 pm    Post subject: Reply with quote

I can't recant any CSS trickery, but if the problem is related to your difficulty handling multiple document requests then you could always host the image on a different server.
Back to top
View user's profile Send private message
AhMunRa
Grandmaster Cheater Supreme
Reputation: 27

Joined: 06 Aug 2010
Posts: 1117

PostPosted: Mon Oct 18, 2010 12:26 pm    Post subject: Reply with quote

Wow, this reminds me of an IE image html exploit. Like you are trying to override a buffer when calling an image to either ddos IE or install something without user interaction as the user running IE.
_________________
<Wiccaan> Bah that was supposed to say 'not saying its dead' lol. Fixing >.>
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8516
Location: 127.0.0.1

PostPosted: Mon Oct 18, 2010 5:19 pm    Post subject: Reply with quote

The trick should work with CSS too:
http://www.websiteoptimization.com/speed/tweak/inline-images/

CSS will cache the image so it should be reused rather then redownloaded each use.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Burningmace
Grandmaster Cheater
Reputation: 5

Joined: 17 Feb 2008
Posts: 520
Location: Inside the Intel CET shadow stack

PostPosted: Sat Oct 23, 2010 4:05 pm    Post subject: Reply with quote

Wiccaan wrote:
The trick should work with CSS too:
http://www.websiteoptimization.com/speed/tweak/inline-images/

CSS will cache the image so it should be reused rather then redownloaded each use.


Quality stuff! Didn't realise I could specify such data in the Url() pseudo-function.

@AhMunRa - It's just for an app I'm coding that displays the current operational status of the server it's running on, nothing sinister or exploity about it Smile

_________________
It's not fun unless every exploit mitigation is enabled.
Back to top
View user's profile Send private message
AhMunRa
Grandmaster Cheater Supreme
Reputation: 27

Joined: 06 Aug 2010
Posts: 1117

PostPosted: Mon Oct 25, 2010 9:15 am    Post subject: Reply with quote

No worries, I'm all for the exploity bits too.
_________________
<Wiccaan> Bah that was supposed to say 'not saying its dead' lol. Fixing >.>
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Web Development All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites