Advertisement
BaSs_HaXoR

Python RTE Program (By Milky444)

Aug 7th, 2014
603
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.15 KB | None | 0 0
  1. #Credits: milky4444
  2. #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
  3. #exports:
  4. #THA CODE
  5. Function: isSwagM8
  6. Parms: void
  7. type: void
  8. Function: ConnectAndAttach
  9. Parms: LPCWSTR msg,LPCWSTR title (leave blank for default)
  10. type: void
  11. Function: setMemory
  12. Parms: UINT32 addr, BYTE *bytes, int size
  13. type: void
  14. Function: getMemory
  15. Parms: UINT32 addr,int length
  16. type: BYTE* (or unsigned char*)
  17. Function:Reversebytes
  18. Parms: BYTE *start, int size
  19. type: void
  20. #everthing else from sebs lib: http://www.nextgenupdate.com/forums/ps3-cheats-customization/739307-small-c-ps3-library-source.html[/CODE]
  21. #link to source:
  22. #http://www.mediafire.com/view/5d21sbwk46k78d7/PS3.py
  23. #also be sure to have python 2.7.x or around there because ive tried with 3.x.x and it dnt wrk :/
  24.  
  25. #-------=======PS3.py By Milky4444=======-------
  26.  
  27. import ctypes
  28. #only for python: 2.7.x
  29. #######################tmapi calls##################################
  30. #ps3tmapi = ctypes.WinDLL ("C:\\Program Files (x86)\\SN Systems\\PS3\\bin\\ps3tmapi.dll")
  31. #TinitPt = ctypes.WINFUNCTYPE (ctypes.c_void_p)
  32. #ConnectPt = ctypes.WINFUNCTYPE(ctypes.c_int)
  33. #ConnectPr = (1,"targ",0)
  34. #PAPt = ctypes.WINFUNCTYPE (ctypes.c_int,ctypes.c_uint32,ctypes.c_uint32)
  35. #PListPt = ctypes.WINFUNCTYPE(ctypes.c_int,ctypes.set_last_error,ctypes.c_uint32_p)
  36. #PAPtP = (1,"t",0),(1,"buff",0),(1,"id",0)
  37. #Tinit = TinitPt(("SNPS3InitTargetComms",ps3tmapi),None)
  38. #PA = PAPt(("SNPS3ProcessAttach",ps3tmapi),PAPtP)
  39. #Connect = ConnectPt(("SNPS3Connect",ps3tmapi),ConnectPr)
  40. #you can use the original ps3tmapi.dll or you can make your own to make the parameters easier on yourself :)
  41. #iam using a dll i made
  42. print "loading DLL...\n"
  43. ps3= ctypes.WinDLL ("path\\to\\milky.dll")
  44. print "intilizing functions...\n"
  45. ConnectPt = ctypes.WINFUNCTYPE(None)
  46. Connect = ConnectPt(("ConnectAndAttach",ps3),None)
  47. swegPt = ctypes.WINFUNCTYPE(None)
  48. sweg = swegPt(("isSwagM8",ps3),None)
  49. def mainMNU():
  50.     print "option 1\noption 2\noption 3\n..."
  51.     if raw_input() == "option 1":
  52.         sweg()
  53. print "connect?:"
  54. if raw_input() == 'y':
  55.     Connect()
  56.     mainMNU()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement