Advertisement
PeroxDevelopment

swxl demo 2.0 source release, enjoy

Dec 13th, 2015
704
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.60 KB | None | 0 0
  1. #define _CRT_SECURE_NO_WARNINGS //msvc doesn't like freopen
  2. #include <iostream>
  3. #include <Windows.h>
  4. #include <string>
  5. #include <vector>
  6. #include <stdio.h>
  7.  
  8. using namespace std;
  9.  
  10. namespace Memory {
  11. // snip
  12.  
  13. }
  14.  
  15. namespace Roblox {
  16. int Lighting = 0;
  17. int Teams;
  18. int Players = 0;
  19. int Workspace = 0;
  20. int Game;
  21. int ClearAllChildren_Address = 0x50CA50;
  22. typedef void(__thiscall * clearallchildren)(void*self);
  23. clearallchildren ClearAllChildren = (clearallchildren)ClearAllChildren_Address;
  24. int BreakJoints_0_Address = 0xE540B0;
  25. typedef void(__thiscall * KillAll)(void* self);
  26. KillAll BreakJoints = (KillAll)BreakJoints_0_Address;
  27. int SetMinuetsAfterMidnight_Address = 0x6C7E90;
  28. typedef void(__thiscall * SetMinuets)(void* self, double aidss);
  29. SetMinuets SetMid = (SetMinuets)SetMinuetsAfterMidnight_Address;
  30. int FogEnd_Adddress = 0x67D7D0;
  31. typedef void(__thiscall * SetF)(void* self, float foghax);
  32. SetF SetFogEnd = (SetF)FogEnd_Adddress;
  33. }
  34.  
  35. int main()
  36. {
  37. AllocConsole();//create console
  38. freopen("CONOUT$", "w", stdout); //to use output (cout)
  39. freopen("CONIN$", "r", stdin); //to use input, useless because I never take input
  40. SetConsoleTitle(L"Project SWXL Demo v0.2 - by Nextron0");
  41. cout << "Scanning... Please wait\n";
  42. // snipped the scanners.
  43. cout << "done " << endl;
  44. cout << "Type in 'cmds' for list of commands.\n";
  45. string command;
  46. putchar('\n');
  47. while (1) {
  48. putchar('>');
  49. cin >> command;
  50. if (command == "exit") {
  51. return 0;
  52. }
  53. else if (command == "clrteams") {
  54. Roblox::ClearAllChildren((void*)Roblox::Teams);
  55. }
  56. else if (command == "clearallchildren"){
  57. Roblox::ClearAllChildren((void*)Roblox::Workspace);
  58. }
  59. else if (command == "killall") {
  60. Roblox::BreakJoints((void*)Roblox::Workspace);
  61. }
  62. else if (command == "settime") {
  63. double time;
  64. cin >> time;
  65. Roblox::SetMid((void*)Roblox::Lighting, time);
  66. }
  67. else if (command == "day") {
  68. double time = 15;
  69. Roblox::SetMid((void*)Roblox::Lighting, time);
  70. }
  71. else if (command == "night") {
  72. double nighttime = 0;
  73. Roblox::SetMid((void*)Roblox::Lighting, nighttime);
  74. }
  75. else if (command == "fogend") {
  76. float fog;
  77. cin >> fog;
  78. Roblox::SetFogEnd((void*)Roblox::Lighting, fog);
  79. }
  80. else if (command == "nofog") {
  81. float fog = 100000;
  82. Roblox::SetFogEnd((void*)Roblox::Lighting, fog);
  83. }
  84. }
  85. }
  86.  
  87. BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
  88. {
  89. if (fdwReason == DLL_PROCESS_ATTACH)
  90. {
  91. DisableThreadLibraryCalls(hinstDLL);
  92. CreateThread(0, 0, (LPTHREAD_START_ROUTINE)main, 0, 0, 0); //lets go
  93. }
  94. return 1;
  95. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement