Jump to content

2 posts in this topic

Recommended Posts

Posted

/* Welcome freedom fighter. The liberation front has gained access to the

* source code for a wire transfer program used by FIRST NATIONAL CYBER, a

* bank used by the alliance for oppression and we need you to find a

* vulnerability in this program and stea... er liberate the funds from an

* operative named prince_john.

*

* The bank programmers have attempted to put in a number of defense checks

* to prevent abuse of the bank wire network, but we suspect that deadlines

* and corporate training programs have left them without the motivation

* required to think of every possibility.

*

* It is imperative that you find a way to drain the account completely

* otherwise they may be able to withdraw the remaining funds and go

* underground before we can finish tracking them in the physical world.

*

* Good luck and as always, should you be detected your actions will be

* blamed on the Chinese Government.

*

* ~~~0xDEADFEED~~~

*

* To build and run the wire transfer program:

*

* $ cc -o wire_transfer wire_transfer.c

* $ ./wire_transfer

*

*/

 

#include <stdbool.h>

#include <stdio.h>

#include <stdlib.h>

#include <string.h>

 

#define MAXLEN 255

 

typedef struct Account {

int balance;

char owner[MAXLEN];

} Account;

 

Account *init_account(const char *name, int balance);

bool wiretransfer(Account *source, Account *dest, int amount);

void display_balance(Account *account);

void exit_if(bool condition, const char *message);

void validate_heist(Account *target);

 

int main(int argc, const char *argv[])

{

unsigned int transfer_amount;

char input[MAXLEN];

 

printf("----- WELCOME TO FIRST CYBER BANK -----\n");

printf("username: robin_hood\n");

printf("password: *****************\n");

printf("Logged In Successfully!\n");

printf("account> wiretransfer prince_john\n");

printf("----- BEGIN WIRE TRANSFER SETUP -----\n");

 

Account *yours = init_account("robin_hood", 10000);

Account *theirs = init_account("prince_john", 500000);

 

display_balance(yours);

display_balance(theirs);

 

while (true) {

printf("Amount to transfer from your account to theirs: ");

fgets(input, sizeof(input), stdin);

transfer_amount = strtoul(input, NULL, 10);

 

if ((long)transfer_amount > 0) {

break;

}

 

printf("Invalid transfer amount!\n");

}

 

printf("----- ATTEMPTING WIRE TRANSFER -----\n");

printf("Wire transfer status: ");

printf("%s\n", wiretransfer(yours, theirs, transfer_amount) ? "SUCCESS" : "FAILURE");

 

display_balance(yours);

display_balance(theirs);

validate_heist(theirs);

 

free(yours);

free(theirs);

 

return 0;

}

 

Account *init_account(const char *name, int balance)

{

Account *account = malloc(sizeof(Account));

exit_if(account == NULL, "Problem allocating memory");

 

if (account != NULL) {

strncpy(account->owner, name, sizeof(account->owner) - 1);

account->balance = balance;

}

 

return account;

}

 

bool wiretransfer(Account *source, Account *dest, int amount)

{

if (source == NULL || dest == NULL) return false;

if (source->balance - amount < 0) return false;

if (dest->balance + amount < 0) return false;

 

source->balance -= amount;

dest->balance += amount;

return true;

}

 

void display_balance(Account *account)

{

if (account == NULL) return;

printf("%s has $%d in their account.\n", account->owner, account->balance);

}

 

void exit_if(bool condition, const char *message)

{

if (condition) {

perror(message);

exit(EXIT_FAILURE);

}

}

 

void validate_heist(Account *target)

{

if (target->balance == 0) {

printf("Target funds liberated: You win ;)\n");

} else {

printf("Target still has operating funds, try again.\n");

}

}

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Our picks

    • Dream Raiders 2: Wilds v1.000.043 +3 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Dream Raiders 2:Wilds By DREAM PLUS GAMES LIMITED
      Bundle ID: com.mechanist.dream2.ios
      App Store Link: https://apps.apple.com/ph/app/dream-raiders-2-wilds/id6743147434?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
        • Informative
        • Winner
        • Like
      • 16 replies
    • Dream Raiders 2: Wilds v1.000.043 +3 Cheats [ Damage & Defence ]
      Modded/Hacked App: Dream Raiders 2:Wilds By DREAM PLUS GAMES LIMITED
      Bundle ID: com.mechanist.dream2.ios
      App Store Link: https://apps.apple.com/ph/app/dream-raiders-2-wilds/id6743147434?uo=4

       
       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
        • Agree
        • Haha
        • Like
      • 6 replies
    • League of Dreamers - My Story v2.2.2 +3 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: League of Dreamers - My Story By Story Inc. Company
      Bundle ID: com.storyincorporate.leagueofdreamers
      iTunes Store Link: https://apps.apple.com/us/app/league-of-dreamers-my-story/id1591679538
       

      Hack Features:
      - 666 Gems -> Earn some then restart the game.
      - 666 Keys -> Earn some then restart the game.
      - Free In-App Purchases -> Allows free in-app purchases.


      Jailbreak required hack(s): [Mod Menu Hack] League of Dreamers - My Story v1.54 +3 Cheats [ Unlimited Currencies ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 231 replies
    • League of Dreamers - My Story v2.2.2 +3 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: League of Dreamers - My Story By Story Inc. Company
      Bundle ID: com.storyincorporate.leagueofdreamers
      iTunes Store Link: https://apps.apple.com/us/app/league-of-dreamers-my-story/id1591679538
       

      Hack Features:
      - 666 Gems -> Earn some then restart the game.
      - 666 Keys -> Earn some then restart the game.
      - Free In-App Purchases


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 99 replies
    • Planet Crusher - Dig & Drill v0.19.0 +8 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Planet Crusher - Dig & Drill By Gryphon Games UG (haftungsbeschrankt)
      Bundle ID: com.gryphongames.planetcrusher
      App Store Link: https://apps.apple.com/us/app/planet-crusher-dig-drill/id6738657101?uo=4

       
       

      🤩 Hack Features

      - God Mode
      - Damage Multiplier
      - Drill Damage Multiplier
      - No Knockback
      - Unlimited Currencies -> Will increase instead of decrease.
      - All Planets Unlocked
      - Battle Pass Unlocked
      -- No Ads
        • Agree
        • Thanks
        • Winner
        • Like
      • 38 replies
    • Planet Crusher - Dig & Drill v0.19.0 +8 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Planet Crusher - Dig & Drill By Gryphon Games UG (haftungsbeschrankt)
      Bundle ID: com.gryphongames.planetcrusher
      App Store Link: https://apps.apple.com/us/app/planet-crusher-dig-drill/id6738657101?uo=4

       
       

      🤩 Hack Features

      - God Mode
      - Damage Multiplier
      - Drill Damage Multiplier
      - No Knockback
      - Unlimited Currencies -> Will increase instead of decrease.
      - All Planets Unlocked
      - Battle Pass Unlocked
      -- No Ads
        • Informative
        • Agree
        • Haha
        • Thanks
        • Like
      • 15 replies
    • Mob Control v2.96.1 +7 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Mob Control By Voodoo
      Bundle ID: com.vincentb.MobControl
      iTunes Store Link: https://apps.apple.com/us/app/mob-control/id1562817072?uo=4


      Hack Features:
      - Unlimited Coins -> Earn or spend some.
      - Unlimited Skip'Its -> Earn or spend some.
      - Unlimited Stars -> Earn some.
      - Unlimited Bricks
      - Unlimited Earnt Bricks
      - Unlimited Cards -> Will increase instead of decrease.
      - No Card Requirement


      Jailbreak required hack(s): [Mod Menu Hack] Mob Control v2.78.0 +7 Cheats [ Unlimited Currencies ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 266 replies
    • Disney Emoji Blitz Game v73.2.0 +1++ Jailed Cheat [ Unlimited Currencies ]
      Modded/Hacked App: Disney Emoji Blitz Game By Jam City, Inc.
      Bundle ID: com.disney.emojimatch
      iTunes Store Link: https://apps.apple.com/us/app/disney-emoji-blitz-game/id1017551780
       

      Hack Features:
      - Unlimited Currencies -> Earn some.


      Jailbreak required hack(s): https://iosgods.com/topic/168886-disney-emoji-blitz-game-all-versions-1-cheats-unlimited-currencies/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 218 replies
    • Disney Emoji Blitz Game v73.2.0 +1++ Cheat [ Unlimited Currencies ]
      Modded/Hacked App: Disney Emoji Blitz Game By Jam City, Inc.
      Bundle ID: com.disney.emojimatch
      iTunes Store Link: https://apps.apple.com/us/app/disney-emoji-blitz-game/id1017551780
       

      Hack Features:
      - Unlimited Currencies -> Earn some.


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/168888-disney-emoji-blitz-game-v5320-1-jailed-cheat-unlimited-currencies/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 69 replies
    • Senses - Choose Romance Story v1.18.1 +2 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Senses - Choose Romance Story By Allustone, Inc.
      Bundle ID: games.extras.novels
      App Store Link: https://apps.apple.com/us/app/senses-choose-romance-story/id1665172637?uo=4

       


      🤩 Hack Features

      - Unlimited Gems -> Head into Settings > Support and toggle the Copy UDID button.*
      - Unlimited Keys -> Head into Settings > Support and toggle the Copy UDID button.*

      * - Only use 1 feature at a time.
        • Haha
        • Thanks
        • Winner
        • Like
      • 50 replies
    • Senses - Choose Romance Story v1.18.1 +2 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Senses - Choose Romance Story By Allustone, Inc.
      Bundle ID: games.extras.novels
      App Store Link: https://apps.apple.com/us/app/senses-choose-romance-story/id1665172637?uo=4

       
       

      🤩 Hack Features

      - Unlimited Gems -> Head into Settings > Support and toggle the Copy UDID button.*
      - Unlimited Keys -> Head into Settings > Support and toggle the Copy UDID button.*

      * - Only use 1 feature at a time.
        • Agree
        • Haha
        • Thanks
        • Like
      • 6 replies
    • Mob Control v2.96.1 +7 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Mob Control By Voodoo
      Bundle ID: com.vincentb.MobControl
      iTunes Store Link: https://apps.apple.com/us/app/mob-control/id1562817072?uo=4


      Hack Features:
      - Unlimited Coins -> Earn or spend some.
      - Unlimited Skip'Its -> Earn or spend some.
      - Unlimited Stars -> Earn some.
      - Unlimited Bricks
      - Unlimited Earnt Bricks
      - Unlimited Cards -> Will increase instead of decrease.
      - No Card Requirement


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] Mob Control v2.78.0 +7 Jailed Cheats [ Unlimited Currencies ] - Free Non-Jailbroken IPA Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 148 replies
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines