Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Credits: milky4444
- #now i recommend you make your own dll but if your to lazy heres one i made: #http://www.mediafire.com/download/28tw2zcl6clhaqa/milky.dll
- #exports:
- #THA CODE
- Function: isSwagM8
- Parms: void
- type: void
- Function: ConnectAndAttach
- Parms: LPCWSTR msg,LPCWSTR title (leave blank for default)
- type: void
- Function: setMemory
- Parms: UINT32 addr, BYTE *bytes, int size
- type: void
- Function: getMemory
- Parms: UINT32 addr,int length
- type: BYTE* (or unsigned char*)
- Function:Reversebytes
- Parms: BYTE *start, int size
- type: void
- #everthing else from sebs lib: http://www.nextgenupdate.com/forums/ps3-cheats-customization/739307-small-c-ps3-library-source.html[/CODE]
- #link to source:
- #http://www.mediafire.com/view/5d21sbwk46k78d7/PS3.py
- #also be sure to have python 2.7.x or around there because ive tried with 3.x.x and it dnt wrk :/
- #-------=======PS3.py By Milky4444=======-------
- import ctypes
- #only for python: 2.7.x
- #######################tmapi calls##################################
- #ps3tmapi = ctypes.WinDLL ("C:\\Program Files (x86)\\SN Systems\\PS3\\bin\\ps3tmapi.dll")
- #TinitPt = ctypes.WINFUNCTYPE (ctypes.c_void_p)
- #ConnectPt = ctypes.WINFUNCTYPE(ctypes.c_int)
- #ConnectPr = (1,"targ",0)
- #PAPt = ctypes.WINFUNCTYPE (ctypes.c_int,ctypes.c_uint32,ctypes.c_uint32)
- #PListPt = ctypes.WINFUNCTYPE(ctypes.c_int,ctypes.set_last_error,ctypes.c_uint32_p)
- #PAPtP = (1,"t",0),(1,"buff",0),(1,"id",0)
- #Tinit = TinitPt(("SNPS3InitTargetComms",ps3tmapi),None)
- #PA = PAPt(("SNPS3ProcessAttach",ps3tmapi),PAPtP)
- #Connect = ConnectPt(("SNPS3Connect",ps3tmapi),ConnectPr)
- #you can use the original ps3tmapi.dll or you can make your own to make the parameters easier on yourself :)
- #iam using a dll i made
- print "loading DLL...\n"
- ps3= ctypes.WinDLL ("path\\to\\milky.dll")
- print "intilizing functions...\n"
- ConnectPt = ctypes.WINFUNCTYPE(None)
- Connect = ConnectPt(("ConnectAndAttach",ps3),None)
- swegPt = ctypes.WINFUNCTYPE(None)
- sweg = swegPt(("isSwagM8",ps3),None)
- def mainMNU():
- print "option 1\noption 2\noption 3\n..."
- if raw_input() == "option 1":
- sweg()
- print "connect?:"
- if raw_input() == 'y':
- Connect()
- mainMNU()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement