Main Menu
Main Page
Forums
New pages
Recent changes
Random page
Help

Glitches
Arbitrary code execution
Pokémon cloning
Pomeg glitch and Glitzer Popping
Tweaking and voiding
Glitches by generation
Other glitch categories

References/Resources
Databases
Disassembly projects
The Big HEX List
Interactive tools
Reference documents
Terminology

Affiliates
Legendary Star Blob 2 (Hakuda) (日本語/Japanese)
Pokémon Speedruns wiki (English)
PRAMA Initiative (Français/French)
MissingNo. Glitch City (Italiano/Italian)
Become an affiliate!

Technical
Site source code

Search Wiki

 

Search Forums

 

Author Topic: Arbitrary code execution in Red/Blue using the "8F" item  (Read 430157 times)

0 Members and 1 Guest are viewing this topic.

DoubleNegative

  • GCLF Member
  • Offline Offline
  • CHARIZRAD 'M ROXORX or is it.
    • View Profile
Re: Arbitrary code execution in Red/Blue using the "8F" item
« Reply #675 on: August 25, 2017, 04:36:14 pm »
Never mind. I figured out the script on my own. here:
any item x any
8F
Lemonade x 0
X Accuracy x 0
Carbos x 0
Poké Ball x 119
Escape Rope x 175
Carbos x 211
X Accuracy x 35
Super Potion x 34
Rare Candy x 5
HP Up x 34
HP Up x 34
TM01 x 35
Full Heal x 47
Fire Stone x 5
Potion x 35
HP Up x 52
Fresh Water x 201
Burn Heal x 13


By default, it edits bytes sequentially, resetting lemonades to 0 after each use. Swapping Burn Heal x 13 for Rare Candy x 5 turns it into that reusable ram editor.

natanelho

  • >_> Nothing to see here <_<
  • GCLF Member
  • Offline Offline
  • hey!WHAT THIS BOX DOES????
    • View Profile
Re: Arbitrary code execution in Red/Blue using the "8F" item
« Reply #676 on: August 26, 2017, 12:31:10 am »
can you please write the asm code? I really dont understand why people dont do it... that's very easy to do, pretty useful for the ones who want to know what exactly it does and it doesn't do any harm to anyone...
He... did.
The items script is LITERALLY GBz80ASM.
It's a simple conversion with ISSOtm's converter, which can be found in the "Useful Tools" section of the sidebar, or here.
I know you can easily convert asm to item list but I wanted to understand the code, not just to use it, and afaik there's no simple converter to convert item list back to asm.....

ISSOtm

  • The French Lord of Laziness (and a huge The Legend Of Zelda fan)
  • Staff
  • *****
  • Offline Offline
  • Gender: Male
  • Pewter City (B)rocks !
    • View Profile
    • My Little Website
Re: Arbitrary code execution in Red/Blue using the "8F" item
« Reply #677 on: August 26, 2017, 03:22:01 am »
To convert back, you can set up the list in BGB, then go into the "debugger" panel, then hit Ctrl+G, then type $D322 (US R/B), and read the code.

Or you can convert into hex using the Big HEX List and then into ASM (either doing it by hand or with BGB) ; or directly into ASM still using the List.
"THOU SHALL NOT PASS !!"  RIVAL's effect, Gandalf.

Proudly glitching Pokémon Red and Yellow on a Black & White GB, Pocket GB, GB Color, GBA SP and new 3DS.

My Twitter (beware, I'm French)
My YouTube (same warning)

Here is an online tool to build 8F setups : GBz80 to Items !

They see me layzin', they ha-tin'...
Heavy contributor of the global augmentation of entropy (my room's is too damn high !)

natanelho

  • >_> Nothing to see here <_<
  • GCLF Member
  • Offline Offline
  • hey!WHAT THIS BOX DOES????
    • View Profile
Re: Arbitrary code execution in Red/Blue using the "8F" item
« Reply #678 on: August 26, 2017, 06:53:57 am »
To convert back, you can set up the list in BGB, then go into the "debugger" panel, then hit Ctrl+G, then type $D322 (US R/B), and read the code.

Or you can convert into hex using the Big HEX List and then into ASM (either doing it by hand or with BGB) ; or directly into ASM still using the List.
I know all this, but I think we can agree that its a lot more of a hassle then just copy-paste your own asm code...

ISSOtm

  • The French Lord of Laziness (and a huge The Legend Of Zelda fan)
  • Staff
  • *****
  • Offline Offline
  • Gender: Male
  • Pewter City (B)rocks !
    • View Profile
    • My Little Website
Re: Arbitrary code execution in Red/Blue using the "8F" item
« Reply #679 on: August 26, 2017, 11:43:27 am »
Yep.
"THOU SHALL NOT PASS !!"  RIVAL's effect, Gandalf.

Proudly glitching Pokémon Red and Yellow on a Black & White GB, Pocket GB, GB Color, GBA SP and new 3DS.

My Twitter (beware, I'm French)
My YouTube (same warning)

Here is an online tool to build 8F setups : GBz80 to Items !

They see me layzin', they ha-tin'...
Heavy contributor of the global augmentation of entropy (my room's is too damn high !)

Storyreader21

  • GCLF Member
  • Offline Offline
  • CHARIZRAD 'M ROXORX or is it.
    • View Profile
Re: Arbitrary code execution in Red/Blue using the "8F" item
« Reply #680 on: September 16, 2017, 07:48:42 pm »
Hey, I was wondering I have seen US pokemon blue 8f codes for changing pc pokemons dv to 10 attack, 10 defense, 10 speed, and 10 special, as well as one with 14 attack iv, 10 defense, 10 speed, and 10 special, but although both give shiny pokemon when traded to Gold/silver a lot of times they are male.  I want pokemon that are still shiny, but except for pokemon with a 1:7 female:male gender ratio (starters, eeveelutions, pokemon like that) would be female so I would need a dv set of 2 attack, 10 defense, 10 speed, and 10 special, what is a US Pokemon Blue 8f code for that?

ISSOtm

  • The French Lord of Laziness (and a huge The Legend Of Zelda fan)
  • Staff
  • *****
  • Offline Offline
  • Gender: Male
  • Pewter City (B)rocks !
    • View Profile
    • My Little Website
Re: Arbitrary code execution in Red/Blue using the "8F" item
« Reply #681 on: September 17, 2017, 04:01:32 am »
Code: [Select]
8F
Any item x Any qty
X Accuracy x178
Carbon x218
Max Revive x170
Poké Ball x201

This will edit the first Pokémon in your active box.

Use once.
Toss 1 X Accuracy (you have 177).
Toss ?? Max Revives (you have 42).
Use once.

Done !
"THOU SHALL NOT PASS !!"  RIVAL's effect, Gandalf.

Proudly glitching Pokémon Red and Yellow on a Black & White GB, Pocket GB, GB Color, GBA SP and new 3DS.

My Twitter (beware, I'm French)
My YouTube (same warning)

Here is an online tool to build 8F setups : GBz80 to Items !

They see me layzin', they ha-tin'...
Heavy contributor of the global augmentation of entropy (my room's is too damn high !)

DoubleNegative

  • GCLF Member
  • Offline Offline
  • CHARIZRAD 'M ROXORX or is it.
    • View Profile
Re: Arbitrary code execution in Red/Blue using the "8F" item
« Reply #682 on: September 17, 2017, 11:01:44 am »
What is that for?
« Last Edit: September 17, 2017, 11:02:04 am by DoubleNegative »

ISSOtm

  • The French Lord of Laziness (and a huge The Legend Of Zelda fan)
  • Staff
  • *****
  • Offline Offline
  • Gender: Male
  • Pewter City (B)rocks !
    • View Profile
    • My Little Website
Re: Arbitrary code execution in Red/Blue using the "8F" item
« Reply #683 on: September 17, 2017, 02:25:07 pm »
Basically what he asked.
"THOU SHALL NOT PASS !!"  RIVAL's effect, Gandalf.

Proudly glitching Pokémon Red and Yellow on a Black & White GB, Pocket GB, GB Color, GBA SP and new 3DS.

My Twitter (beware, I'm French)
My YouTube (same warning)

Here is an online tool to build 8F setups : GBz80 to Items !

They see me layzin', they ha-tin'...
Heavy contributor of the global augmentation of entropy (my room's is too damn high !)

likebeingawesome

  • The game reset master
  • GCLF Member
  • Offline Offline
  • Gender: Male
  • DARN IT I RESET MY GAME
    • View Profile
Re: Arbitrary code execution in Red/Blue using the "8F" item
« Reply #684 on: September 17, 2017, 07:17:56 pm »
So I have been thinking about glitch text in red and blue (like what you see in stacks of over 100 items) and I though well all that text have hex values that when put in an encounter table would have a value of 15 what you need for mew. So what I need is a way to change your name to have those characters (I guess with 8F cause thats the point of this topic) to find mew with the old man glitch.
I need to double check codes before I use them


ISSOtm

  • The French Lord of Laziness (and a huge The Legend Of Zelda fan)
  • Staff
  • *****
  • Offline Offline
  • Gender: Male
  • Pewter City (B)rocks !
    • View Profile
    • My Little Website
Re: Arbitrary code execution in Red/Blue using the "8F" item
« Reply #685 on: September 21, 2017, 09:16:52 am »
You could just set 8F to make you encounter Mew. Just saying.

You should edit D15A/5C/5E to $0F, then.
"THOU SHALL NOT PASS !!"  RIVAL's effect, Gandalf.

Proudly glitching Pokémon Red and Yellow on a Black & White GB, Pocket GB, GB Color, GBA SP and new 3DS.

My Twitter (beware, I'm French)
My YouTube (same warning)

Here is an online tool to build 8F setups : GBz80 to Items !

They see me layzin', they ha-tin'...
Heavy contributor of the global augmentation of entropy (my room's is too damn high !)

DoubleNegative

  • GCLF Member
  • Offline Offline
  • CHARIZRAD 'M ROXORX or is it.
    • View Profile
Re: Arbitrary code execution in Red/Blue using the "8F" item
« Reply #686 on: September 21, 2017, 02:31:19 pm »
Putting a 0xF (15) is the ID of Nidoran female. He means 0x15 (21) which is Mew's ID.

ISSOtm

  • The French Lord of Laziness (and a huge The Legend Of Zelda fan)
  • Staff
  • *****
  • Offline Offline
  • Gender: Male
  • Pewter City (B)rocks !
    • View Profile
    • My Little Website
Re: Arbitrary code execution in Red/Blue using the "8F" item
« Reply #687 on: September 22, 2017, 08:39:34 am »
I was on my phone and I hate it, so I didn't bother to check if it was 15 or 0x15.
Also please leave my life out of this, thank you.
"THOU SHALL NOT PASS !!"  RIVAL's effect, Gandalf.

Proudly glitching Pokémon Red and Yellow on a Black & White GB, Pocket GB, GB Color, GBA SP and new 3DS.

My Twitter (beware, I'm French)
My YouTube (same warning)

Here is an online tool to build 8F setups : GBz80 to Items !

They see me layzin', they ha-tin'...
Heavy contributor of the global augmentation of entropy (my room's is too damn high !)

DoubleNegative

  • GCLF Member
  • Offline Offline
  • CHARIZRAD 'M ROXORX or is it.
    • View Profile
Re: Arbitrary code execution in Red/Blue using the "8F" item
« Reply #688 on: September 24, 2017, 10:19:36 am »
Is there a list of each glitch pokemon's catch rate and glitch pokemon evolutions?

Krys3000

  • French living dexer
  • Distinguished Member
  • *
  • Offline Offline
  • Gender: Male
  • Head admin of the PRAMA Initiative
    • View Profile
    • PRAMA Initiative - French Pokémon glitch website
Re: Arbitrary code execution in Red/Blue using the "8F" item
« Reply #689 on: September 24, 2017, 11:02:38 am »
You can use this website's glitchdex. Clicking on a glitch Pokémon will give you these informations. In case of missing data, Bulbapedia also has it :)
« Last Edit: September 24, 2017, 11:02:59 am by Krys3000 »

Admin of the PRAMA Initiative, the main french Pokémon glitch website
https://www.prama-initiative.com
“Anti-intellectualism has been a constant thread winding its way through our political and cultural life, nurtured by the false notion that democracy means that 'my ignorance is just as good as your knowledge.'” - Isaac Asimov