Junk Byte Code for Kicks

25Feb/120

ASDOC inside SWC

Just learned how to include asdoc inside swc so that it shows up in IDE
(tested with FlashBuilder).

Thanks to http://forums.adobe.com/thread/444791

Added a new console download: Console2.6+asdoc.swc

http://code.google.com/p/flash-console/downloads/list

21Feb/121

Console 2.6

Version 2.6 final is out for download.

* Addons are now included in Console.swc
* DisplayMap addon, Allows inspecting of display tree
* CommandLine auto focus addon, auto focus command line textfield when it becomes visible
* Removed Cc.remotingPassword. use Cc.config.remotingPassword (must be set before starting remote)
* Basic timestamp display support. Use Cc.config.showTimestamp = true;
* Line number display support. Use Cc.config.showLineNumber = true;
* Key binds allow for key down or key up state
* Multi line top menu
* Support for delete operation in commandLine
* Fixed Issue 90. UTF8 chars failing to send to remote

Download at: http://code.google.com/p/flash-console/downloads/list

Tagged as: 1 Comment
15Nov/112

How to piggyback Console into flash content on the web

What does it mean?

Add console into flash content that's on the web, letting you use console features as if it was your own.
Ofcourse you may not see logs unless it is hooked up, but you can still do other things such as Display roller, CommandLine, FPS / memory monitor. This is 'not a hack' but a trick, probably a security concern for a lot of the case...
Considering you can do this a lot easier with javascripts AND the fact that you can de-compile swf files, this particular method is not a massive security concern.

What can you do with it?

Mainly just out of curiosity.
Maybe you just want to know how things are structured, how good is the FPS , etc...

You can start the display roller 'RL' and see how the display list is constructed.
Capture the display list and start introspecting the properties and methods of classes.

If you know some of the code base (decompile the game?), you probably also know what classes there are, so you can access them live via console - and even modify values.

If your victim flash content have bad security checks on server end, you can probably hack it out to give your self many points / credit, etc. - or at least on that one session.

10Jul/106

Console has arrived

Finally managed to rename the Console source package name to junkbyte.com

That took quite a lot of afford. Had to change all documentations and sample files as well.
I am afraid I will piss some users because I've also made a lot of changes to how console is set up in this new version.
Here is the changes note of the last version:

Version 2.4 BETA

  • Renamed source package name to com.junkbyte.console - to be less personal
  • Move a lot of 'configuration' settings from C. to ConsoleConfig (that you pass at start)
  • Due to security concern, CommandLine is no longer allowed by default. You must do C.commandLineAllowed = true OR C.commandLine = true (to allow and show)
  • CommandLine: no longer auto scope to new return. Enter '/' to change scope to last returned object. Turn on auto-scoping by typing /autoscope
  • Very long lines are automatically split before displaying to increase speed
  • Custom graphing is now passed into remote.
  • Added C.explode
  • Added C.stack
  • Added C.autoStackPriority and defaultStackDepth in ConsoleConfig
  • C.fatal will get auto stack trace by default.
  • External trace call will have channel name as first param, log line as second param and priority as third
  • Removed tracingPriorty, prefixChannelNames, tracingChannels
  • Removed C.filterText and C.filterRegExp - use /filter in interface
  • Removed C.gc() - use memoryMonitor - G button in interface.

Source code and most of documentation will still be hosted in: http://code.google.com/p/flash-console/

AsDoc is now located here: http://junkbyte.com/flash-console/asdoc/com/junkbyte/console/Cc.html

Sample here: http://junkbyte.com/flash-console/

This site will act as a 'blog' and second degree support.
Will be writing more about console in later posts. I always wanted to write all about it somewhere and now I can...

Console Controls: