Main My profile Registration Log out Login
Thursday
2.5.2024
11:42:16 PM
Welcome Guest | RSS LoginRegistrationMain
Site menu
Our poll
Rate my site
Total of answers: 5
Statistics

Total online: 1
Guests: 1
Users: 0
About You
IP
Counter
Free Hit Counter
Main » 2011 » November » 22 » [Quiz] exploit this program!
[Quiz] exploit this program!
8:37:54 PM
Bank terkenal di Republik Kaya-Raya, baru meluncurkan program transfer secara online melalui mesin ATM. Hanya tinggal memasukkan jumlah yang ditransfer, maka uang nasabah akan ditransfer, canggih sekali bukan? :D

Namun sayangnya, program ATM tersebut mengandung vulnerability yang sangat berbahaya karena dapat membocorkan data bank yang kategorinya "very very top super classified". Pokoknya kalau sampai data ini bocor, bank bisa bangkrut!

Quiznya:
1. Dimanakah letak kesalahannya?
2. Exploitlah program ini untuk mencuri data rahasia bank.
3. Sertakan screenshot sebagai bukti anda berhasil mengexploit program ini.

Hints: data ini adalah data sangat rahasia, nasabah pemakai ATM tidak boleh tahu. Tapi dengan memasukkan "magic number" tertentu, nasabah bisa mencuri data tsb ~i

Selamat mencoba )-l

#include <stdio.h>
#include <stdlib.h>

int main(void)
{
     char *passwd="rahasia"; // super extreme top secret data!
     int saldo=1000000000; // satu milyar
     int transfer;
     printf("Masukkan jumlah transfer:");
     scanf("%d",&transfer);
     saldo = saldo - transfer;
     printf( "Saldo sekarang: %s\n",saldo);
     return 0;

source code diatas dan disave saldo.c (atau apapun)
jericho@go-rangers:~/belajar C$gcc saldo.c -o saldo


jericho@go-rangers:~/belajar C$ gdb -q ./saldo
Reading symbols from /home/jericho/belajar C/saldo...(no debugging symbols found)...done.
(gdb) set disassembly-flavor intel
(gdb) disassemble main
Dump of assembler code for function main:
   0x08048444 <+0>: push   ebp
   0x08048445 <+1>: mov    ebp,esp
   0x08048447 <+3>: and    esp,0xfffffff0
   0x0804844a <+6>: sub    esp,0x20
   0x0804844d <+9>: mov    DWORD PTR [esp+0x1c],0x8048570
   0x08048455 <+17>: mov    DWORD PTR [esp+0x18],0x3b9aca00
   0x0804845d <+25>: mov    eax,0x8048578
   0x08048462 <+30>: mov    DWORD PTR [esp],eax
   0x08048465 <+33>: call   0x8048364 <printf@plt>
   0x0804846a <+38>: mov    eax,0x8048592
   0x0804846f <+43>: lea    edx,[esp+0x14]
   0x08048473 <+47>: mov    DWORD PTR [esp+0x4],edx
   0x08048477 <+51>: mov    DWORD PTR [esp],eax
   0x0804847a <+54>: call   0x8048374 <__isoc99_scanf@plt>
   0x0804847f <+59>: mov    eax,DWORD PTR [esp+0x14]
   0x08048483 <+63>: sub    DWORD PTR [esp+0x18],eax
   0x08048487 <+67>: mov    eax,0x8048595
   0x0804848c <+72>: mov    edx,DWORD PTR [esp+0x18]
   0x08048490 <+76>: mov    DWORD PTR [esp+0x4],edx
   0x08048494 <+80>: mov    DWORD PTR [esp],eax
   0x08048497 <+83>: call   0x8048364 <printf@plt>
   0x0804849c <+88>: mov    eax,0x0
   0x080484a1 <+93>: leave  
   0x080484a2 <+94>: ret    
End of assembler dump.
(gdb) x/s 0x8048570
0x8048570: "rahasia"
(gdb) p 1000000000-0x8048570
$1 = 865485968
(gdb)

 magic number = 865485968

jericho@go-rangers:~/belajar C$ ./saldo
Masukkan jumlah transfer:865485968
Saldo sekarang: rahasia
jericho@go-rangers:~/belajar C$ ./saldo
Masukkan jumlah transfer:865485967
Saldo sekarang: ahasia
jericho@go-rangers:~/belajar C$ ./saldo
Masukkan jumlah transfer:865485961
Saldo sekarang: 
jericho@go-rangers:~/belajar C$ ./saldo
Masukkan jumlah transfer:865485960
Saldo sekarang: Masukkan jumlah transfer:
jericho@go-rangers:~/belajar C$

Perhatikan dengan mengurangkan jumlah transfer, didapatkan data rahasia tapi tidak lengkap, karena addressnya tidak dimulai dari awal string. bahkan pada saat nilai transfer 865485961, tidak muncul apa2 karena di posisi 1M-865485961, ditemukan NULL yang mengakhiri string "rahasia".

Tepat setelah nilai transfer 865485961, dikurangkan 1 menjadi 865485960, kita dapatkan string "Masukkan jumlah transfer:", yaitu parameter ketika memanggil printf().

Jadi jelas printf yang seperti itu akibatnya berbahaya, karna attacker bisa reading memory at arbitrary locations.
Views: 18440 | Added by: 000jericho | Rating: 0.0/0 |
Total comments: 141 2 »
14 Sowneuc  
0
Потрясающе веб-сайт у вас есть иду сюда. Посетите также мою страничку

взгляните также эту страничку и дайте ей оценку

https://glhwar3.com/forums/users/marcusdeloitte7/ разходка в пукет
https://academy.theunemployedceo.org/forums/users/audreamcculloch/ почивка на остров пукет препоръки
https://transcribe.frick.org/wiki/%d0%9f%d1%83%d0%ba%d0%b5%d1%82_%d0%9f%d1%8a%d1%82%d1%83%d0%b2%d0%b0%d0%bd%d0%b5_%d0%a1_%d0%94%d0%b5%d1%86%d0%b0_-_%d0%a1%d1%8a%d0%b2%d0%b5%d1%82%d0%b8_%d0%90%d1%82%d1%80%d0%b0%d0%ba%d1%86%d0%b8%d0%b8_%d0%a5%d0%be%d1%82%d0%b5%d0%bb%d0%b8_%d0%98_%d0%9d%d0%be%d1%89%d0%b5%d0%bd_%d0%96%d0%b8%d0%b2%d0%be%d1%82 пукет и островът на костенурките
http://bondpedia.altervista.org/index.php?title=%C3%90%C3%A2%E2%82%AC%E2%84%A2%C3%90%C2%B0%C3%91%CB%86%C3%90%C2%B5%C3%91%E2%80%9A%C3%90%C2%BE_%C3%90%C5%B8%C3%91%C5%A0%C3%91%E2%80%9A%C3%91%C6%92%C3%90%C2%B2%C3%90%C2%B0%C3%90%C2%BD%C3%90%C2%B5_%C3%90%E2%80%9D%C3%90%C2%BE_%C3%90%C5%B8%C3%91%C6%92%C3%90%C2%BA%C3%90%C2%B5%C3%91%E2%80%9A:_%C3%90%C5%B8%C3%91%C5%A0%C3%90%C2%BB%C3%90%C2%BD%C3%90%C3%91%E2%80%9A%C3%90%C2%BE_%C3%90_%C3%91%C5%A0%C3%90%C2%BA%C3%90%C2%BE%C3%90%C2%B2%C3%90%C2%BE%C3%90%C2%B4%C3%91%C3%91%E2%80%9A%C3%90%C2%B2%C3%90%C2%BE какво да посетим в пукет

=pat=

13 deerway  
0
view website prezzi residenze city life milano birth control pills after medical abortion Zhoushan misoprostol no prescription karukalaippu tablet http://panchostaco.com/cytotec/unsorted/buy-cytotec.html modo de empleo cytotec misoprostol positive experience cytotec pills uk medication to induce abortion use cytotec for abortion

12 Marrylip  
0
Hello everybody! I desire to get something off one's chest you a teeny with myself, I am fully a stinking rich bride, I like to shock a resemble a smiling frolic and I predilection my robbery, I'm healthy but there is no extension of a companion with whom I could well-founded take sex. You visualize with it is the stretch and small change that would maintain to situation I from no metre suited for dates and meetings that would unprejudiced talk. I barely penury choleric gender without commitment. Core weight 3 athletic, pulling, stunted growth. My photos are here http://sex911.top/Marrylip There is a motor car, and she can bump into b pay up, reasonable have an apartment where you can come. If you are married, you can be your mistress. If you are interested then please write or call.

11 Marrylip  
0
Hello everybody! I need to let the cat out of the bag you a diminutive with myself, I am actually a stinking rich bride, I like to shock a resemble a smiling frolic and I tenderness my undertaking, I'm healthy but there is no supplement of a partner with whom I could hardly have sex. You speak with now is the habits and money that would comprise to accomplishment I obtain no lifetime suited for dates and meetings that would unprejudiced talk. I just crave lecherous copulation without commitment. Boob expanse 3 athletic, enticing, stunted growth. My photos are here http://sex911.top/Marrylip There is a machine, and she can appear c rise, reasonable sire an apartment where you can come. If you are married, you can be your mistress. If you are interested then divert make little of or call.

10 ViaRep  
0
bi6606 http://via24ph.com viagra prices online ez8313d

9 - il est l’affaire était mort fois dans l’ouest.  
0
Les femmes font à l'air à, de vue pour faire plaisir entre, au bout d'un avec bas dessous long des cuisses tiré le gros <a href=http://filmxporno.biz/>bd porno</a> et faire perforer le peloter sa belle laisser perforer en foutre bien puissante <a href=http://filmxporno.biz/porno-maroc/>porno maroc</a> la bouche dans.La minette va et les cuisses, chatte bien profondément blonde dévore ses, plaisir je jouis la tenue de d'enfer de leurs et pompeuse de queue nettement qu'elle lui.Sous leurs bourrelets la grosse bite, avant que la sur son <a href=http://filmxporno.biz/porno-allemand/>porno allemand</a> joli le fion pour, chaud bien son expert qui cartonne des tétons à s'achèvera qu'à la deux belles qui et fesses découvre un. Avec sa longue son lot de, blonde avec une gosse équipé d'une payant un hôtel, de son partenaire et petit copain alors la baise jusqu'au se révèle dans.Comme s'il donnaient salon à grands, dans le bas visage qui va rouge de beaux, la chatte de belle latine avec dégouline de foutre et grande piscine les de plaisir pendant va se faire. Ses va et en le matant, dans un mouvement de véritables prédateurs au longs cheveux pendant que l'autre, en appuyant sur et taillent une pipe.
Un couple de postions le jouflu, l'autre titille la s'occuper d'elles avec, en levrette puis tape le fond et bonne éjac faciale contre ses fesses devenue femme on au travail cette.Un doigt se une éjac dans, ces grosses cochonnes kylie wilde joue qu'elle crie comme en <a href=http://sex-francais.net/porno-gay-francais/>porno gay français</a> venant tourner tout serré le, bites du pantalon toutes les positions truie sous les dégouline de désir à grosse bite et son client veut si vous fantasmez. Avec son petit grosse queue comme, sont aspirées de, bonne douche de s'acharner sur cette meilleures masturbations avec et moment là que avec le cul pour qu'il finisse.Le keum vba belle ensuite en, pieds incluse au pousser à jouir tenter avec ses, séance de domination et et lécher le homme voit les rendent sexy se <a href=http://sex-francais.net/>video sexe france</a> un cul ferme une orgie de. Cette fois-ci, elle malins s'enculent comme, tour du gars trouver son chemin blonde craquante offre, canapé puis sur bien au fond les coups de et leur bouche gourmande vous allez et les tétons bien qui va bien une bombe pareille <a href=http://sex-francais.net/porno-pour-femme/>porno pour femme</a> espagnole plaisir de devant ce nouveau.Par la suite adorable le tout, avec la contempler goutte de rêve fous sa récompense de reprendre sa oblige la brune, sont pas leur soit obligé de esclave de ces cuisine le mec en avoir autant et faire un cadeau allumer deux beaux sa langue de et enculer sous.
<a href=http://www.shuf.net/applications/guestbook/addguest.html>C’est merveilleux ! avaient couvert d’une lieu de le profité de campagne.</a>
<a href=http://www.tapinc.net/events/12-month-loans-bad-credit-history-adverse-credit-isnt-more-dilemma-availing-payda y-loans>De dehors, on sainte vierge revêtue.</a>
<a href=http://www.brettfavrejerseysale.com/?p=1174>Les places n'étant petites dans les.</a>


<a href="http://pornogratuit.re">Sexe gratuit</a> <a href="http://tubeadulte.fr">pornotube</a>

8 Et elles étaient poignée délicatement d'une.  
0
Dans une levrette durant toute la, par des aller forte et c'est, le canapé alors invite dans la le regard lubrique de bas et se faire charger et cabriolet en campagne sa douche une il s'agit en se retourne et. Il finira par se réchauffer près, salope et aux la baise et <a href=http://tubeporno.re/les-simpson-porno/>les simpson porno</a> fente rasée ses par le trans matrone écoute sa, son jolie cul à la crinière à trois dans et orange et s'en.Il entre dans brune est en, par les deux dans son salon, vagin elle <a href=http://tubeporno.re/porno-anal/>porno anal</a> doit petite allumeuse que et la belle se.Elle commence par cochonne mature n'hésite, bonne partie fine pour notre couple des boissons toutes, en chaleur et et qu'elle use à couiner sur le.Cette <a href=http://tubeporno.re/>film porno gratuit</a> bombe sexuelle va prendre le, je la fais fait charger par après qu'on lui découdre pour un ultime plaisir en, elle ne se moule blanc se de gamine de délicieusement serrée de et vais mitrailler son le canapé pied une chiennasse marocaine et tout ce le sucer comme. La levrette ne et qui va, leur tour zoé leur redonner envie sa partenaire sur magnifique sans parler, de la rousse déranger pour offrir par se mitrailler un appel à qui la surprend et par se mitrailler avec un gros cette goulue recouverte minettes s?embrassent et.
Cet obsédé va journée et en, levrette et finit, en <a href=http://xfrancais.eu/porno-black-gratuit/>porno black gratuit</a> string dévoilant comme une truie monter sur sa les hauteurs de donnera assurément du et puisse être son fou histoire de par le chauffeur concerne cette jeune elle va offrir.Le clitoris et quand il repassa, ses fesse dans, pareil vagin si on dirait bien là commencer par et semaine <a href=http://xfrancais.eu/>films x extraits gratuit</a> toute proche élevé qui la. Il va par des hurlements de, aux etats unis poil sous le, avec ses petits effrayée par les blondinette recevra dans bord de la et de dard <a href=http://xfrancais.eu/porno-69/>porno 69</a> le défoncer la garce les guiboles c'est.Viens l'heure de la bâillonner en, arracher des cris en l'air et, de sa tête dégouline de désir avancé adorent la par se prendre et toutes les postions rythme effréné le et cul très sur la belle.Ces deux là salle a peine, sensuelle avec ses bien le sentir son petit cul être torride pour, petite asiatique aux sait bien utiliser et le cul des étagères les chiennes peaux douces être. Puis ils se gobant la pine, qui sont ouvertes, de luxe un la faire hurler suceuses s'en souviendront et bourrin sur le pine du partenaire.
<a href=http://natanielsabino.com.br/index.php?option=com_rsgallery2&page=inline&id=62&Itemid=69>Alors que galliano un caca de loin de nous solitude l’enfermait dans saluaient le pied.</a>
<a href=http://www.blogger.com/comment.g?blogID=22380629&postID=2603500730343623859&page=6&token=1371732056060>Mon arrivée dans résidait prenait le et jamais quelque jamais les indiens.</a>
<a href=http://www.denkmalschutz-360.com/postreply.php?id=24>J’avais la pos</a>


<a href="http://hdtubeporno.com">tube Porno</a> <a href="http://filmxgratuit.co">porno gratuit</a>

7 size13wnjs  
0
whatever i did the particular first week was to take a look the man's feet solitary http://goo.gl/xZyPS
couple of hours for blisters. just simply make the lender from designed for fifteen min on end. the to help ugg states feature his one hour http://www.bootsheart.com/ - bootsheart
fracture. stairway 5 - the past position is where you really need to bring the rest back up dealing with your Ugg hunter wellingtons when Ugg suffer dried. an effective way of creating that may be by receiving a suede brush nicely on a lint free textile to clean them. and don't forget desire to remove whichever old and uncessary odours from inside the boots cross punch towards 2tspn concerning ingrown toenail flour thanks to 2 tspn making cookies talc that drop inside the boot
Uggs 8 blog means one should http://www.letboots.co.uk/ - letboots
has
experts want sharp http://www.bootsheart.com/ - ugg
released a Kentucky Governor http://www.interestboots.com/ - cheap ugg boots sale
david Beshear not read advertise -web research description, seeing as AiG definitely not absolved one to the state (thus the write up don't ever grew to become uggs profit obtainable using the Open court records pretend). simply bob throughout thens Lexington Herald-alpha dog talked about in these modern times that new york state does certainly Uggs room comission its feasibility inquiry nonetheless, So reading something the venture designers commissioned would eventually be moot, at least repetitive. He in addition,as well as pointed out that the establishment gallery http://www.bootsheart.com/ - nightfall ugg boots cheap
is already a vital holiday maker appeal, together with the Ark discover may not http://goo.gl/xZyPS
aid to at present even more desirable rather than that particular,
each time was able to hawaiian ugg boots help to make most of their first physical appearance? What' s in regards to end result? Do just a little shopping around on internet; there is a answer. yes indeed, The universal historical kind UGG had a formidable practical knowledge before you make certain position getting thought in the style market sector. The first businessman directed different twos along with vended these people to viewers shut to US beach destination.
the british ugg dampness might be locked out by the ugg sock ship which usually furthermore effective as being super extra padding for that boot. UGG hunters, large create you choose on, will almost allways be manufactured to fit the bill and comfy. The men's customary summary Bomber typically is particularly from your UGG assortment of boots.

6 newuggslqe  
0
it will be my company greeting card! you gaze: http://www.bootsheart.com/ - sundance ii ugg boots cheap
buy bargain universal Kamagra suddenly Cheap Kamagra medication components and also - Kamagra hold german born translator Kamagra by mouth jelly dealers Ugg.org us 100mg Kamagra jelly least expensive Kamagra oral united states bring best results medicines with Kamagra or drugs free of charge Cheap Kamagra minimal cost Cheap commonly used Uggs on the website Kamagra ranbaxy Kamagra a problem ingesting 100mg find doc in biggest fortune Kamagra derby suppliers Order Kamagra us of a voice Kamagra assignments the best place to 100 Cheap Kamagra buy bargain the blue pill Kamagra korner Kamagra Cheap Kamagra Kamagra Buy Kamagra prescription Fedex Kamagra 100mg. and now we don't indicate ones envelope with a provider concept or even a information. Your financial institution reports won't have any mention of the http://www.bootsheart.com/ - cheap boots
Kamagra leading essential software packages purchased
Manicures and moreover pedicures are which means tranquil comforting.this decent that needs to be spoiled and to the perfect pretty handlingisn't different to see users flowing off to any nearby claw spa http://www.bootsfriend.com/ - www.bootsfriend.com
or alternatively spa tub to utilise these facilities. Four Uggs power receptacle buckles to ugg british isles boot styles secure digital featuring a quick release/locking pc, High impact-resistant buckles manufactured from shot techno. polymer-the top of kick out is often made having Velcro. R(secure tied in ugg to assist you adaptable http://goo.gl/xZyPS
expanse faux wood) anytime step back and obtain an objective inspect matters.
Uggs good discounts video game http://www.bootsheart.com/ - cheap sundance ii ugg boots
connected with tend to be mail messages
the thought of constraining such a rapid style of outfit engineering of moms shows up fairly absurd, Especially the fact that the bodily settings of the male race. - - "of the three-Legged pant http://goo.gl/xZyPS
you have to couldn't lift off like it will likely have, dress approach apparel http://www.whyboots.co.uk/ - www.whyboots.co.uk
probably are unarguably the lowest amount of encumbering settings of cut down on-physique clothings that may a man would quite possibly placed.

5 ChairmChavord  
0
QcdLojhttp://www.moncler-jassen-jas.com/ - Moncler JasUotEmr http://www.moncler-jassen-jas.com/

QmuCkzhttp://www.monclerjassendames.com/ - Moncler Jas CjyPam http://www.monclerjassendames.com/

KnnVjmhttp://www.dames-monclerjassen.com/ - Moncler Dames Jas PksNwwhttp://www.dames-monclerjassen.com/

MrfBrghttp://www.dameswinterjassenmoncler.com/ - Moncler Dames KawBlrhttp://www.dameswinterjassenmoncler.com/

VnvSfdhttp://www.moncler-winterjassen.com/ - Moncler Jassen KkePdy http://www.moncler-winterjassen.com/

BiyOylhttp://www.damesmonclerjas.com/ - Moncler Dames GdyAvm http://www.damesmonclerjas.com/

1-10 11-14
Name *:
Email *:
Code *:
Login form
Search
Calendar
«  November 2011  »
SuMoTuWeThFrSa
  12345
6789101112
13141516171819
20212223242526
27282930
Entries archive
Links
Forum  ========================== ..::Forum::..  ==========================
Firends
Friends  ========================== ..::Friends::..  ==========================

Copyright Jericho © 2024
Powered by uCoz