Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 06:07

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Format String Exploit

Discussion on Format String Exploit within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
LcPlayer1's Avatar
 
elite*gold: 1765
Join Date: Aug 2011
Posts: 2,538
Received Thanks: 400
Format String Exploit

Hallo zusammen,

ich muss folgenden Format String Exploit in der Uni vorstellen, verstehe diesen aber nicht ganz.


Der einzige Formatstringbeschreiber, der hier genutzt wird, ist %u, weshalb ich nicht verstehe, wo der nötige Schreibvorgang passiert, damit in den Shellcode gesprungen werden kann.

Erst dachte ich, es wäre ein Bufferoverflow, aber da snprintf() die Eingabe begrenzt, kann das auch nicht sein oder!?

Außerdem habe ich festgestellt, dass genau 4602 Zeichen mit %u geschrieben werden müssen, damit der Exploit funktioniert. Also scheint es etwas mit dem Zähler der snprintf()-Funktion zu tun zu haben?

Ich hoffe ihr könnt mir helfen. Vielleicht ist es ja ganz einfach und ich übersehe es nur.

Ich habe schon stundenlang in Google gesucht, jedoch wird in den Beispielen immer %n genutzt, um z.B. die Returnadresse zu überschreiben.
LcPlayer1 is offline  
Reply


Similar Threads Similar Threads
[Visual Basic] [Problem] String auslesen/String zufällig wählen
05/06/2012 - General Coding - 4 Replies
Code: #include <GUIConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Name Generator", 236, 299, 815, 246) $Input1 = GUICtrlCreateInput("Username", 24, 72, 185, 21) $Input2 = GUICtrlCreateInput("Username", 24, 104, 185, 21) $Input3 = GUICtrlCreateInput("Username", 24, 136, 185, 21) $Input4 = GUICtrlCreateInput("Username", 24, 168, 185, 21) $Input5 = GUICtrlCreateInput("Username", 24, 200, 185, 21)
Input string was not in correct format.
05/14/2010 - CO2 Private Server - 10 Replies
I have fully converted LOTF to ini, as you can see it works pretty much ok from the screenshot: http://i42.tinypic.com/otk7ih.png But I get this error/warning that is to do with my LoadMobSpawns function: http://i42.tinypic.com/zvbzgy.jpg public static void LoadMobSpawns() { if (File.Exists(System.Windows.Forms.Application.Star tupPath + @"\Objects\MobSpawns.txt"))



All times are GMT +1. The time now is 06:07.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.