ponyboy837

Toontown 2003 Decompiler [Made by Dan]

Apr 19th, 2016
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Python 2.2
  2. #Data Dumper - Made by Dan Alias: Prince Frizzy, ponyboy837, angrybird837
  3.  
  4. #You will need the Toontown 2003 .pyz files and Panda3D 1.0.5
  5.  
  6. import string
  7. import ihooks
  8. import zlib
  9. import marshal
  10. import sys
  11. import os
  12.  
  13. global DataItems
  14.  
  15. print("Welcome to the .pyz code dumper! It'll be a moment please.")
  16.  
  17. print("Dumping Phase2.pyz")
  18.  
  19. PYTHONMAGIC = '\x2D\xED\x0D\x0A\x00\x00\x00\x00'
  20.  
  21. Phase2Modules = ['__future__', 'Patcher', 'TimeVal', 'libpandaexpressDowncasts', 'Fstream', 'ProfileTimer', 'URLSpec', 'Filename', 'TaskManagerGlobal', 'VirtualFileSimple', 'VirtualFileSystem', 'PTAUchar', 'libpandaexpressGlobals', 'ConfigExpress', 'StreamWriter', 'DatagramIterator', 'Iostream', 'HTTPEnum', 'Buffer', 'MessengerGlobal', 'VirtualFile', 'FILE', 'sre_constants', 'TypedReferenceCount', 'types', 'LocalizerEnglish', 'tokenize', 'NotifySeverity', 'StreamReader', 'Decompressor', 'EventHandler', 'DocumentSpec', 'Task', 'string', 'Extractor', 'ClockObject', 'Datagram', 'PointerToBaseRefCountObjvectorunsignedchar', 'EventManagerGlobal', 'Multifile', 'FFIConstants', 'ISocketStream', 'OSocketStream', 'HTTPClient', 'FFIExternalObject', 'Namable', 'LoggerGlobal', 'bisect', 'TypedObject', 'VectorURLSpec', 'WindowsRegistry', 'EventManager', 'token', 'Notify', 'DirectNotifyGlobal', 'fnmatch', 'TypeRegistry', 'LocalizerCastillian', 'Ofstream', 'Ramfile', 'dis', 'AsyncUtility', 'copy_reg', 'sre_compile', 'VirtualFileComposite', 'ErrorUtilCode', 'site', 'PythonUtil', 'HTTPChannel', 'Messenger', 'Logger', 'DirectNotify', 'fpformat', 're', 'HTTPDate', 'VectorbasicStringchar', 'Ostream', 'ReferenceCount', 'TypeHandle', 'Istream', 'EventParameter', 'Ifstream', 'warnings', 'Launcher', 'NotifyCategory', 'inspect', 'MultiplexStream', 'DownloadDb', 'DSearchPath', 'sre_parse', 'VirtualFileList', 'SocketStream', 'Notifier', 'Patchfile', 'HashVal', 'DirectObject', 'sre', 'Localizer', 'EventQueue', 'EventReceiver', 'HTTPEntityTag', 'Event', 'libpandaexpressModules', 'TextEncoder']
  22. Phase3Modules = ['PosLerpFunctor', 'ProjectileInterval', 'libdirectGlobals', 'TrackerNode', 'SimpleLerpFunctorLVecBase3f', 'DNACornice', 'PointEmitter', 'libtoontownModules', 'DDPlayground', 'QuestChoiceGui', 'RingGameGlobals', 'ServerRepository', 'SceneGraphReducer', 'FloatLerpFunctor', 'Vec4D', 'SoundInterval', 'DCClass', 'QuietZoneState', 'ParametricCurveCollection', 'TypedWritableReferenceCount', 'libpandaDowncasts', 'DNASignBaseline', 'Wake', 'SphereSurfaceEmitter', 'RingTrackGroup', 'BRSafeZoneLoader', 'AccountServerDate', 'TexMatrixAttrib', 'BankGui', 'MinigameRulesPanel', 'Character', 'PointerToConnection', 'DistributedDLTreasure', 'DistributedBattleTutorial', 'CullBinAttrib', 'Quests', 'MMSafeZoneLoader', 'CollisionHandler', 'DCFile', 'FriendSecret', 'SimpleQueryLerpFunctorLVecBase4f', 'PhysicalNode', 'VBase2D', 'MovieSOS', 'FriendInvitee', 'AnimBundle', 'random', 'ConnectionWriter', 'NewPlayerScreen', 'QueuedReturnPointerToConnection', 'ShowBase', 'Ring', 'Transitions', 'libpandaphysicsDowncasts', 'DistributedNPCToon', 'ParametricCurveDrawer', 'ClientRepository', 'CString', 'PhotoAlbumPage', 'DistributedCannonGame', 'DelayDelete', 'State', 'Camera', 'DNALandmarkBuilding', 'libtoontownGlobals', 'LerpBlendType', 'Maze', 'PotentialAvatar', 'FrameBufferProperties', 'PGWaitBar', 'ChatInputQuickTalker', 'libdirectModules', 'MovieSound', 'Mersenne', 'NurbsCurveInterface', 'QuestParser', 'DistributedRaceGame', 'KeyboardButton', 'MovieUtil', 'StaticTextFont', 'DistributedCloset', 'LoginBase', 'CLerpAnimEffectInterval', 'ToontownMsgTypes', 'RewardPanel', 'PGTop', 'BattleSounds', 'TTTownLoader', 'PositionExaminer', 'HideInterval', 'PGMouseWatcherBackground', 'DialNode', 'LightAttrib', 'ZoneUtil', 'DistributedHouse', 'ClipPlaneAttrib', 'DirectFrame', 'MagicWordManager', 'ShardPage', 'TownBattleSOSPanel', 'CatchGameGlobals', 'DistributedMMPiano', 'ClientBase', 'DNALoader', 'OrthoWalk', 'DCAtomicField', 'WelcomeScreen', 'DistributedTagTreasure', 'ModelRoot', 'MinigamePowerMeter', 'DistributedDDTreasure', 'ParticleManagerGlobal', 'HQTelescopeAnimatedProp', 'DistributedGarden', 'DirectWaitBar', 'PotentialShard', 'LightLensNode', 'DoorTypes', 'DGPlayground', 'DistributedMickey', 'DirectDialog', 'PartBundle', 'StateData', 'PGButton', 'MouseWatcherRegion', 'DistributedPatternGame', 'ColorScaleAttrib', 'FunctionInterval', 'DataNodeTransmit', 'PointerToBaseRefCountObjvectorLPoint3f', 'ClerkPurchase', 'tokenize', 'NoBlendType', 'InventoryNew', 'RenderState', 'ModelPool', 'NodePath', 'BlinkingArrows', 'CogPageGlobals', 'DynamicTextPage', 'SimpleLerpFunctorLVector2f', 'CollisionPlane', 'AnimBundleNode', 'Connection', 'ToontownDialog', 'TutorialManager', 'Spotlight', 'DistributedSuitInterior', 'LOrientationd', 'ChatManager', 'FriendsListManager', 'MovieDrop', 'Nametag2d', 'Trackball', 'IntervalGlobal', 'DistributedCCharBase', 'LinearCylinderVortexForce', 'ForceGroup', 'VirtualMouse', 'AnimControlCollection', 'GuiScreen', 'LODNode', 'AngularVectorForce', 'WritableConfigurable', 'PiecewiseCurve', 'LoginTTAccount', 'DeleteManager', 'MakeClothesGUI', 'GraphicsStateGuardian', 'DistributedMinigameTemplate', 'ModelNode', 'LerpBlendHelpers', 'BaseForce', 'BaseParticle', 'SimpleQueryLerpFunctorLVector4f', 'MinigameAvatarScorePanel', 'LinearFrictionForce', 'MazeData', 'DistributedNode', 'LoaderFileType', 'DistributedSZTreasure', 'DownloadForceAcknowledge', 'DistributedNPCBlocker', 'PublicWalk', 'SwitchNode', 'DNADoor', 'DistributedTutorialInterior', 'FriendHandle', 'BattleProps', 'Rope', 'DNANode', 'SmoothMover', 'MovieLure', 'ConnectionReader', 'SkyUtil', 'SparkleParticleRenderer', 'TutorialStreet', 'PStatClient', 'ButterflyGlobals', 'EmotePage', 'DistributedFishingSpot', 'ChatInputNormal', 'RingTracks', 'DistributedNPCClerk', 'DLStreet', 'ComputedVertices', 'MazeTreasure', 'NurbsCurveResult', 'MovingBlock', 'SimpleQueryLerpFunctorLPoint2f', 'TagGameGlobals', 'Mat4D', 'TTDateObject', 'CurveFitter', 'MovieToonVictory', 'MaterialAttrib', 'DistributedPluto', 'IntervalManager', 'MapPage', 'QTQuestNode', 'CollisionEntry', 'Nametag', 'libtoontownDowncasts', 'LineParticleRenderer', 'DGStreet', 'DistributedBuilding', 'PartBundleNode', 'DateOfBirthEntry', 'FogAttrib', 'RenderEffect', 'DNAStorage', 'CMetaInterval', 'DistributedBankMgr', 'PerspectiveLens', 'Motion', 'TrackChoiceGui', 'NameGenerator', 'DownloadWatcher', 'ClearableRegion', 'PTAColorf', 'SafeZoneLoader', 'FriendsListPanel', 'DistributedToon', 'RandomNumGen', 'CannonGameGlobals', 'ShowBoundsEffect', 'LoginGSAccount', 'CatchGameToonSD', 'SequenceNode', 'Loader', 'DeathForceAcknowledge', 'token', 'LinearForce', 'GraphicsWindow', 'DistributedBattle', 'PosHpr', 'GraphicsPipe', 'DropPlacer', 'MsgTypes', 'FishAnimatedProp', 'CardMaker', 'Vec2D', 'DirectGlobals', 'ToontownTimer', 'LinearSinkForce', 'DNAWall', 'ModifierButtons', 'BoundingLine', 'DNABattleCell', 'FireworkGlobals', 'TangentRingEmitter', 'SuitBuildingGlobals', 'Material', 'ToonHeadDialog', 'GeomLinestrip', 'MathNumbers', 'TTStreet', 'ClientDistClass', 'PatternGameGlobals', 'SleepingHydrantAnimatedProp', 'CollisionHandlerEvent', 'CCharPaths', 'DGTownLoader', 'PurchaseManagerConstants', 'QuestPoster', 'AchievePage', 'NewsManager', 'FloatQueryLerpFunctor', 'CollisionRay', 'DateObject', 'TugOfWarGameGlobals', 'DNAFlatBuilding', 'PlaneD', 'AccumulatedAttribs', 'MMStreet', 'NurbsCurveDrawer', 'ButtonNode', 'DriveInterface', 'LinearJitterForce', 'Char', 'FriendInviter', 'FireworkShows', 'DistributedGoofy', 'GeomPolygon', 'MMHood', 'Point2D', 'GeomTextGlyph', 'SecretFriendsInfoPanel', 'DistributedAvatar', 'LineEmitter', 'PlayByPlayPanel', 'QuatD', 'GeomTransformer', 'Texture', 'DepthOffsetAttrib', 'TTAccount', 'MMPlayground', 'MovingPartACMatrixSwitchType', 'CreateAccountScreen', 'FontPool', 'ChanCfgOverrides', 'DistributedETreasure', 'TailorClothesGUI', 'CollisionHandlerQueue', 'PandaLoader', 'Fireworks', 'TeleportPanel', 'ChatBalloon', 'DistributedSuitPlanner', 'PointerToBaseConnection', 'FreeTimeInformScreen', 'GeomParticleRenderer', 'DistributedSmoothNode', 'GlobalForceGroup', 'DistributedTagGame', 'NameCheckTest', 'TownLoader', 'AnimGroup', 'DistributedKnockKnockDoor', 'CullableObject', 'AvatarChoice', 'MovieSquirt', 'GeomTrifan', 'BattleBase', 'copy', 'PosHprLerpFunctor', 'DNAData', 'DistributedNPCTailor', 'TTPlayground', 'LocalAvatar', 'DistributedObject', 'ColorAttrib', 'ToonBase', 'NametagGroup', 'libpandaModules', 'TransparencyAttrib', 'AudioManager', 'DistributedMazeGame', 'ColorShop', 'Geom', 'Movie', 'ShtikerBook', 'Suit', 'DistributedDoor', 'BuildingPage', 'Particles', 'CInterval', 'BaseParticleFactory', 'DistributedChar', 'DistributedTreasure', 'SimpleLerpFunctorLPoint2f', 'DirectGeometry', 'Frustum', 'ElevatorUtils', 'PhysicsManagerGlobal', 'ToonHeadFrame', 'PRFileDesc', 'CompassEffect', 'MatrixLens', 'LinearEulerIntegrator', 'MovieCamera', 'QueuedReturnConnectionListenerData', 'TutorialHood', 'PosHprScaleLerpFunctor', 'Interval', 'ColorScaleLerpFunctor', 'BoundingSphere', 'MouseButton', 'DistributedMinigame', 'Vec3', 'GeomTri', 'RectangleEmitter', 'DCField', 'GraphicsStateGuardianBase', 'GraphicsChannel', 'PStatCollector', 'GeometricBoundingVolume', 'DCSubatomicType', 'VBase4D', 'MouseAndKeyboard', 'Account', 'MovieSuitAttacks', 'PGMouseWatcherParameter', 'ShowBaseGlobal', 'ConfigConfigureGetConfigConfigShowbase', 'PandaObject', 'AmbientLight', 'AvatarPanel', 'ConnectionListener', 'PointerToBaseRefCountObjvectorLPoint2f', 'TextureAttrib', 'GeomSprite', 'Physical', 'GeomNode', 'DDStreet', 'NPCToons', 'MultiLerpFunctor', 'NametagFloat2d', 'DecalEffect', 'OnscreenImage', 'LinearDistanceForce', 'Ripples', 'DistributedFireworkShow', 'DistributedHQInterior', 'TTHood', 'DistributedElevatorInt', 'SuitPage', 'EstateManager', 'ActorInterval', 'CharStateDatas', 'DirectOptionMenu', 'PhysicsManager', 'ParticleSystem', 'DepthWriteAttrib', 'KnockKnockJokes', 'GraphicsPipeSelection', 'DLTownLoader', 'MemberAgreementScreen', 'ShtikerPage', 'MouseWatcher', 'DistributedGagshopInterior', 'AngularEulerIntegrator', 'ParametricCurve', 'DDrawable', 'ChatGarbler', 'LensNode', 'Mat4', 'DLSafeZoneLoader', 'NurbsCurve', 'CollisionTraverser', 'BodyShop', 'TextureApplyAttrib', 'CoordinateSystem', 'BattleParticles', 'PGFrameStyle', 'ClockDelta', 'FADoorCodes', 'LinearUserDefinedForce', 'DistributedTester', 'TownBattleAttackPanel', 'SuitInterior', 'LocalChar', 'SuitPlannerBase', 'PrivacyPolicyPanel', 'ShowInterval', 'HprScaleLerpFunctor', 'MetaInterval', 'ClickablePopup', 'Playground', 'DistributedRingGame', 'SuitDialog', 'TypedWritable', 'MouseWatcherParameter', 'TownBattleWaitPanel', 'Fog', 'calendar', 'DGHood', 'MovieThrow', 'ElevatorConstants', 'ButtonHandle', 'BaseParticleRenderer', 'DistributedBoat', 'AnimatedProp', 'Toon', 'Quat', 'OmniBoundingVolume', 'MaterialPool', 'ForceNode', 'DirectEntry', 'SimpleQueryLerpFunctorLPoint3f', 'Settings', 'DistributedTugOfWarGame', 'BillboardEffect', 'CharacterJointBundle', 'AlphaTestAttrib', 'OrthographicLens', 'QTNode', 'SuitLegList', 'PTANormalf', 'MultiPageTextFrame', 'BankGlobals', 'SuitBattleGlobals', 'SuitBase', 'BuildMazeData', 'ToontownStart', 'Lerp', 'RingTrackGroups', 'BRStreet', 'Vec4', 'AvatarDetailPanel', 'Vec2', 'DirectUtil', 'PlayByPlayText', 'MazeSuit', 'DLHood', 'AutonomousLerp', 'DistributedElevator', 'Trolley', 'PandaModules', 'ColorLerpFunctor', 'TrolleyConstants', 'MMTownLoader', 'ToonHead', 'FSM', 'Point2', 'Point3', 'HouseGlobals', 'DNASuitPoint', 'ImageBuffer', 'QueuedConnectionReader', 'SimpleLerpFunctorLPoint4f', 'MovieHeal', 'HprLerpFunctor', 'libpandaGlobals', 'CLerpNodePathInterval', 'CollisionSegment', 'QueuedConnectionManager', 'LineStream', 'CullBinManager', 'DistributedBattleBldg', 'GraphicsLayer', 'SimpleLerpFunctorLPoint3f', 'CollisionSolid', 'TutorialForceAcknowledge', 'ZSpinParticleFactory', 'ButtonRegistry', 'SphereVolumeEmitter', 'Vec3D', 'ParticleSystemManager', 'PointLight', 'SimpleLerpFunctorLVecBase4f', 'SimpleQueryLerpFunctorLVector3f', 'ButtonEvent', 'DNASign', 'AvatarDNA', 'RopeNode', 'DCMolecularField', 'SimpleQueryLerpFunctorLVecBase3f', 'QTEmoteNode', 'IntLerpFunctor', 'GeomSphere', 'InputCheck', 'Lens', 'RenderAttrib', 'DirectLabel', 'RecentConnectionReader', 'Hood', 'BRPlayground', 'BoxEmitter', 'PurchaseManager', 'EstateLoader', 'LOD', 'Purchase', 'LinearSourceForce', 'DNAVisGroup', 'LineSegs', 'DirectCheckButton', 'Elevator', 'ChatFlags', 'DLPlayground', 'GeomPoint', 'SimpleLerpFunctorLVecBase2f', 'DirectScrolledList', 'PointerToBaseRefCountObjvectorLVector3f', 'DistributedMMTreasure', 'VBase3D', 'PlayGame', 'CollisionPolygon', 'CubicCurveseg', 'CRCache', 'BRTownLoader', 'DistributedSuit', 'Plane', 'DDHood', 'NurbsCurveEvaluator', 'DistributedButterfly', 'HoodMgr', 'DataGraphTraverser', 'HealthForceAcknowledge', 'DistributedDGTreasure', 'DropScheduler', 'PGEntry', 'TownBattle', 'NetAddress', 'SimpleLerpFunctorLVector4f', 'DistributedMinnie', 'SuitLeg', 'BamFile', 'AudioSound', 'Avatar', 'NametagGlobals', 'CharacterJoint', 'ToonInterior', 'DNAStreet', 'WaitInterval', 'DNASuitEdge', 'QuestRewardCounter', 'TownBattleToonPanel', 'TextureCollection', 'CLerpInterval', 'ToontownBattleGlobals', 'ButtonThrower', 'ToonInteriorColors', 'OnscreenGeom', 'Mat3', 'HealJokes', 'DistributedToonInterior', 'ClosetGUI', 'TextFont', 'AvatarChooser', 'TransformState', 'Pipeline', 'GeomBindType', 'DisplayRegion', 'DirectGuiGlobals', 'CollisionHandlerFloor', 'NametagFloat3d', 'AccountServerConstants', 'TutorialTownLoader', 'MarginPopup', 'PartGroup', 'UniqueIdAllocator', 'LinearRandomForce', 'QueuedReturnNetDatagram', 'DistributedCatchGame', 'DirectGuiBase', 'PhysicsObject', 'CIntervalManager', 'DynamicTextFont', 'AngularIntegrator', 'GenderShop', 'NodePathCollection', 'DataNode', 'DirectButton', 'Point3D', 'BitMask32', 'BRHood', 'RemoteValueSet', 'PlaneNode', 'TextNode', 'RingTrack', 'VBase2', 'VBase4', 'IntQueryLerpFunctor', 'FiniteBoundingVolume', 'DNASuitPath', 'BillingScreen', 'libpandaphysicsGlobals', 'CollisionHandlerPhysical', 'TexturePool', 'QuestPage', 'OptionsPage', 'DistributedDGFlower', 'ParticleTest', 'FishPage', 'FishingCodes', 'MouseData', 'Point4', 'SpriteParticleRenderer', 'SimpleQueryLerpFunctorLPoint4f', 'ScaleLerpFunctor', 'BaseParticleEmitter', 'Actor', 'PTATexCoordf', 'SimpleLerpFunctorLVector3f', 'ParticleInterval', 'DistributedEstate', 'IntervalTest', 'WindowProperties', 'DistributedDonald', 'ColorBlendAttrib', 'EaseInOutBlendType', 'whrandom', 'LoginGoAccount', 'OrthoDrive', 'DNASignText', 'ClothesGUI', 'MovieTrap', 'MouseWatcherGroup', 'PTAUshort', 'TimeManager', 'PGItem', 'MovingPartMatrix', 'ClientDistUpdate', 'Nametag3d', 'LinearNoiseForce', 'DistributedAnimatedProp', 'LeaveToPayDialog', 'DistributedHouseDoor', 'Timer', 'TrackPage', 'MakeAToonGlobals', 'MarginManager', 'Mopath', 'Place', 'DirectGui', 'HQPeriscopeAnimatedProp', 'DNAFlatDoor', 'MakeAToon', 'DNASignGraphic', 'RaceGameGlobals', 'FriendManager', 'QTCustomNode', 'LOrientationf', 'TownBattleChooseAvatarPanel', 'BoundingVolume', 'DistributedBRTreasure', 'DepthTestAttrib', 'DiscEmitter', 'AnalogNode', 'ToontownLoader', 'ChanConfig', 'PatternPad', 'RingGroup', 'LinearIntegrator', 'LRotationd', 'SelectiveChildNode', 'SafeZoneManager', 'LinearVectorForce', 'GraphicsEngine', 'LoginScreen', 'ArrowKeys', 'QueuedConnectionListener', 'SimpleQueryLerpFunctorLVector2f', 'DistributedActor', 'PTAVertexf', 'Transform2SG', 'FrustumD', 'ToontownGlobals', 'DNAGroup', 'ForgotPasswordScreen', 'EaseInBlendType', 'LerpInterval', 'libpandaphysicsModules', 'DNAWindows', 'SimpleQueryLerpFunctorLVecBase2f', 'ToontownClientRepository', 'AngularForce', 'RenderModeAttrib', 'Mat3D', 'GeomLine', 'InventoryPage', 'ConnectionManager', 'LerpFunctor', 'NameShop', 'Experience', 'DGSafeZoneLoader', 'SfxPlayer', 'MopathInterval', 'PurchaseBase', 'DustCloud', 'DistributedElevatorExt', 'Light', 'BoundedObject', 'CullFaceAttrib', 'QTTree', 'CCharChatter', 'SuitTimings', 'Estate', 'EaseOutBlendType', 'House', 'Emote', 'Walk', 'CollisionNode', 'PointParticleFactory', 'PandaNode', 'LightNode', 'RoguesGallery', 'ClosetGlobals', 'ParentPasswordScreen', 'GeomTristrip', 'DDSafeZoneLoader', 'LRotationf', 'DNAProp', 'RingAction', 'ParticleEffect', 'DisplaySettingsDialog', 'Trajectory', 'MovingPartBase', 'Splash', 'OnscreenText', 'WhisperPopup', 'ToonBaseGlobal', 'DistributedTTTreasure', 'CollisionSphere', 'HermiteCurve', 'CollisionHandlerPusher', 'HTTPUtil', 'NameCheck', 'DistributedTrophyMgr', 'LoginWebPlayTokenAccount', 'RingEmitter', 'GeomQuad', 'NetDatagram', 'MazeGameGlobals', 'LocalToon', 'DistributedBank', 'DistributedNPCToonBase', 'PointParticleRenderer', 'AnimControl', 'MinigameGlobals', 'DirectionalLight', 'DistributedHouseInterior', 'DistributedBattleBase', 'TTSafeZoneLoader', 'RenderEffects', 'ColorWriteAttrib', 'VBase3', 'InventoryBase', 'PointerToBaseRefCountObjvectorLVecBase4f', 'PRNetAddr', 'DistributedTrolley', 'DDTownLoader', 'Street', 'libdirectDowncasts', 'Point4D', 'GraphicsThreadingModel', 'NPCForceAcknowledge', 'LaffMeter']
  23.  
  24. f1 = open('Phase2.pyz', 'rb')
  25. f2 = open('Phase3.pyz', 'rb')
  26.  
  27. #First one to dump. Phase2
  28. exec marshal.loads(zlib.decompress(f1.read(904)))
  29. boot('Phase2', f1, 408211)
  30.  
  31. #Get the List Keys for data.
  32. DataItems = Phase2Modules
  33.  
  34. CurrentDict = os.getcwd()
  35. DictExtension = '/Dump'
  36. NewDict = CurrentDict + DictExtension
  37.  
  38. os.chdir(NewDict)
  39.  
  40. #Get the amount of keys in the list.
  41. Amount = len(DataItems)
  42.  
  43. #Dump the Data for Phase2.pyz
  44. for i in range(0, Amount):
  45.   CurrentModule = DataItems[i]
  46.  
  47.   WriteModule = CurrentModule + '.pyc'
  48.  
  49.   MagiclessData = marshal.dumps(data.get(CurrentModule))
  50.   MagicData = PYTHONMAGIC + MagiclessData
  51.  
  52.   f10 = open(WriteModule, "wb")
  53.   f10.write(str(MagicData))
  54.  
  55. print("Dumping Phase3.pyz")
  56.  
  57. os.chdir(CurrentDict)
  58.  
  59. #Second one to dump, Phase3
  60. exec marshal.loads(zlib.decompress(f2.read(904)))
  61. boot('Phase3', f2, 1647964)
  62.  
  63. DataItems = Phase3Modules
  64.  
  65. NewDict = CurrentDict + DictExtension
  66.  
  67. os.chdir(NewDict)
  68.  
  69. #Get the amount of keys in the list.
  70. Amount = len(DataItems)
  71.  
  72. #Dump the Data for Phase3.pyz
  73. for i in range(0, Amount):
  74.   CurrentModule = DataItems[i]
  75.  
  76.   WriteModule = CurrentModule + '.pyc'
  77.  
  78.   MagiclessData = marshal.dumps(data.get(CurrentModule))
  79.   MagicData = PYTHONMAGIC + MagiclessData
  80.  
  81.   f10 = open(WriteModule, "wb")
  82.   f10.write(str(MagicData))
  83.  
  84. print("Finished dumping code!")
Add Comment
Please, Sign In to add comment