├── GooseGooseDuck ├── Program.cs ├── GooseGooseDuck.csproj ├── Form1.resx ├── GetMemory.cs ├── Form1.cs └── Form1.Designer.cs ├── README.md ├── GooseGooseDuck.sln ├── .gitattributes └── .gitignore /GooseGooseDuck/Program.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daehyuh/GooseGooseDuck/HEAD/GooseGooseDuck/Program.cs -------------------------------------------------------------------------------- /GooseGooseDuck/GooseGooseDuck.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | WinExe 5 | net6.0-windows 6 | enable 7 | true 8 | enable 9 | 10 | 11 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | GooseGooseDuck 2 | 3 | c# 프로그래밍, 게임 해킹 연습 4 | 5 | 구스구스덕 게임에서 X,Y 좌표 메모리값을 얻어 스피드핵을 구현해보았습니다! 6 | 7 | 8 | 9 | 해당 자료는 공부용으로 사용합니다!! 10 | 11 | # speed hacking (with. x, y position) 12 | 13 | ## defalut speed 14 |
15 | 16 | 17 |
18 | 19 | ## 0.2 up speed 20 | 21 |
22 | 23 | 24 |
25 | 26 | ## 0.5 up speed (can through the walls) 27 |
28 | 29 | 30 | 31 | 32 |
33 | -------------------------------------------------------------------------------- /GooseGooseDuck.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.1.32414.318 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GooseGooseDuck", "GooseGooseDuck\GooseGooseDuck.csproj", "{82B972E9-EE5B-424B-A6EF-FACBD95BA9F5}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {82B972E9-EE5B-424B-A6EF-FACBD95BA9F5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {82B972E9-EE5B-424B-A6EF-FACBD95BA9F5}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {82B972E9-EE5B-424B-A6EF-FACBD95BA9F5}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {82B972E9-EE5B-424B-A6EF-FACBD95BA9F5}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ExtensibilityGlobals) = postSolution 23 | SolutionGuid = {3E9DA9C2-9C9A-4C81-83D6-70DA8110FCF3} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | 15 | ############################################################################### 16 | # Set the merge driver for project and solution files 17 | # 18 | # Merging from the command prompt will add diff markers to the files if there 19 | # are conflicts (Merging from VS is not affected by the settings below, in VS 20 | # the diff markers are never inserted). Diff markers may cause the following 21 | # file extensions to fail to load in VS. An alternative would be to treat 22 | # these files as binary and thus will always conflict and require user 23 | # intervention with every merge. To do so, just uncomment the entries below 24 | ############################################################################### 25 | #*.sln merge=binary 26 | #*.csproj merge=binary 27 | #*.vbproj merge=binary 28 | #*.vcxproj merge=binary 29 | #*.vcproj merge=binary 30 | #*.dbproj merge=binary 31 | #*.fsproj merge=binary 32 | #*.lsproj merge=binary 33 | #*.wixproj merge=binary 34 | #*.modelproj merge=binary 35 | #*.sqlproj merge=binary 36 | #*.wwaproj merge=binary 37 | 38 | ############################################################################### 39 | # behavior for image files 40 | # 41 | # image files are treated as binary by default. 42 | ############################################################################### 43 | #*.jpg binary 44 | #*.png binary 45 | #*.gif binary 46 | 47 | ############################################################################### 48 | # diff behavior for common document formats 49 | # 50 | # Convert binary document formats to text before diffing them. This feature 51 | # is only available from the command line. Turn it on by uncommenting the 52 | # entries below. 53 | ############################################################################### 54 | #*.doc diff=astextplain 55 | #*.DOC diff=astextplain 56 | #*.docx diff=astextplain 57 | #*.DOCX diff=astextplain 58 | #*.dot diff=astextplain 59 | #*.DOT diff=astextplain 60 | #*.pdf diff=astextplain 61 | #*.PDF diff=astextplain 62 | #*.rtf diff=astextplain 63 | #*.RTF diff=astextplain 64 | -------------------------------------------------------------------------------- /GooseGooseDuck/Form1.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | text/microsoft-resx 50 | 51 | 52 | 2.0 53 | 54 | 55 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 56 | 57 | 58 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 59 | 60 | 61 | 17, 17 62 | 63 | -------------------------------------------------------------------------------- /GooseGooseDuck/GetMemory.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Diagnostics; 7 | using System.Runtime.InteropServices; 8 | using System.IO; 9 | using System.Windows.Forms; 10 | 11 | 12 | namespace GooseGooseDuck 13 | { 14 | internal class GetMemory 15 | { 16 | public Process process = new Process(); 17 | 18 | string process_name = "Goose Goose Duck"; 19 | const int PROCESS_QUERY_INFORMATION = 0x0400; 20 | const int MEM_COMMIT = 0x00001000; 21 | const int PAGE_READONLY = 0x04; 22 | const int PROCESS_WM_READ = 0x0010; 23 | const int PROCESS_VM_READ = 0x10; 24 | const int PROCESS_VM = 0x008; 25 | const int PROCESS_ALL_ACCESS = 0x1F0FFF; 26 | const int MAXIMUM_ALLOWED = 0x2000000; 27 | 28 | public ulong base_adress; 29 | public ulong UnityPlayer; 30 | public ulong GameAssembly; 31 | 32 | IntPtr processHandle; 33 | 34 | [DllImport("kernel32.dll")] 35 | public static extern IntPtr OpenProcess(int dwDesiredAccess, bool bInheritHandle, int dwProcessId); 36 | 37 | [DllImport("kernel32.dll")] 38 | public static extern bool ReadProcessMemory(int hProcess, ulong lpBaseAddress, byte[] lpBuffer, ulong dwSize, ref int lpNumberOfBytesRead); 39 | 40 | [DllImport("kernel32.dll")] 41 | public static extern bool WriteProcessMemory(int hProcess, ulong lpBaseAddress, byte[] lpBuffer, ulong dwSize, ref int lpNumberOfBytesWritten); 42 | 43 | public void get_handel() 44 | { 45 | process = Process.GetProcessesByName(process_name)[0]; 46 | processHandle = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_WM_READ | PROCESS_ALL_ACCESS, false, process.Id); 47 | base_adress = (ulong)process.MainModule.BaseAddress; 48 | int index = 0; 49 | foreach (ProcessModule a in process.Modules) 50 | { 51 | if (a.ModuleName == "UnityPlayer.dll") 52 | { 53 | UnityPlayer = (ulong)process.Modules[index].BaseAddress; 54 | //break; 55 | } 56 | if (a.ModuleName == "GameAssembly.dll") 57 | { 58 | GameAssembly = (ulong)process.Modules[index].BaseAddress; 59 | //break; 60 | } 61 | index++; 62 | } 63 | ; 64 | } 65 | public byte[] get_memory_byte_arr(ulong adress, int byte_size) // sign_flag(0 = sign, 1 = unsign) 66 | { 67 | int bytesRead = 0; 68 | byte[] buffer = new byte[byte_size]; 69 | 70 | ReadProcessMemory((int)processHandle, adress, buffer, (ulong)buffer.Length, ref bytesRead); 71 | 72 | return buffer; 73 | } 74 | 75 | public ulong get_memory_ulong(ulong adress, int byte_size) // sign_flag(0 = sign, 1 = unsign) 76 | { 77 | int bytesRead = 0; 78 | byte[] buffer = new byte[byte_size]; 79 | 80 | ReadProcessMemory((int)processHandle, adress, buffer, (ulong)buffer.Length, ref bytesRead); 81 | return (ulong)BitConverter.ToInt64(buffer, 0); 82 | } 83 | public long get_memory_long(ulong adress, int byte_size) // sign_flag(0 = sign, 1 = unsign) 84 | { 85 | int bytesRead = 0; 86 | byte[] buffer = new byte[byte_size]; 87 | 88 | ReadProcessMemory((int)processHandle, adress, buffer, (ulong)buffer.Length, ref bytesRead); 89 | return (long)BitConverter.ToInt32(buffer, 0); 90 | } 91 | 92 | public float get_memory_float(ulong adress, int byte_size) // sign_flag(0 = sign, 1 = unsign) 93 | { 94 | int bytesRead = 0; 95 | byte[] buffer = new byte[byte_size]; 96 | 97 | ReadProcessMemory((int)processHandle, adress, buffer, (ulong)buffer.Length, ref bytesRead); 98 | return (float)BitConverter.ToSingle(buffer, 0); 99 | } 100 | 101 | internal string put_memory(ulong v) 102 | { 103 | throw new NotImplementedException(); 104 | } 105 | 106 | public void put_memory(ulong adress, byte[] buffer) 107 | { 108 | int bytesRead = buffer.Length; 109 | 110 | WriteProcessMemory((int)processHandle, adress, buffer, (ulong)buffer.Length, ref bytesRead); 111 | } 112 | 113 | internal void put_memory(object p) 114 | { 115 | throw new NotImplementedException(); 116 | } 117 | } 118 | 119 | } 120 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 5 | 6 | # User-specific files 7 | *.rsuser 8 | *.suo 9 | *.user 10 | *.userosscache 11 | *.sln.docstates 12 | 13 | # User-specific files (MonoDevelop/Xamarin Studio) 14 | *.userprefs 15 | 16 | # Mono auto generated files 17 | mono_crash.* 18 | 19 | # Build results 20 | [Dd]ebug/ 21 | [Dd]ebugPublic/ 22 | [Rr]elease/ 23 | [Rr]eleases/ 24 | x64/ 25 | x86/ 26 | [Ww][Ii][Nn]32/ 27 | [Aa][Rr][Mm]/ 28 | [Aa][Rr][Mm]64/ 29 | bld/ 30 | [Bb]in/ 31 | [Oo]bj/ 32 | [Oo]ut/ 33 | [Ll]og/ 34 | [Ll]ogs/ 35 | 36 | # Visual Studio 2015/2017 cache/options directory 37 | .vs/ 38 | # Uncomment if you have tasks that create the project's static files in wwwroot 39 | #wwwroot/ 40 | 41 | # Visual Studio 2017 auto generated files 42 | Generated\ Files/ 43 | 44 | # MSTest test Results 45 | [Tt]est[Rr]esult*/ 46 | [Bb]uild[Ll]og.* 47 | 48 | # NUnit 49 | *.VisualState.xml 50 | TestResult.xml 51 | nunit-*.xml 52 | 53 | # Build Results of an ATL Project 54 | [Dd]ebugPS/ 55 | [Rr]eleasePS/ 56 | dlldata.c 57 | 58 | # Benchmark Results 59 | BenchmarkDotNet.Artifacts/ 60 | 61 | # .NET Core 62 | project.lock.json 63 | project.fragment.lock.json 64 | artifacts/ 65 | 66 | # ASP.NET Scaffolding 67 | ScaffoldingReadMe.txt 68 | 69 | # StyleCop 70 | StyleCopReport.xml 71 | 72 | # Files built by Visual Studio 73 | *_i.c 74 | *_p.c 75 | *_h.h 76 | *.ilk 77 | *.meta 78 | *.obj 79 | *.iobj 80 | *.pch 81 | *.pdb 82 | *.ipdb 83 | *.pgc 84 | *.pgd 85 | *.rsp 86 | *.sbr 87 | *.tlb 88 | *.tli 89 | *.tlh 90 | *.tmp 91 | *.tmp_proj 92 | *_wpftmp.csproj 93 | *.log 94 | *.vspscc 95 | *.vssscc 96 | .builds 97 | *.pidb 98 | *.svclog 99 | *.scc 100 | 101 | # Chutzpah Test files 102 | _Chutzpah* 103 | 104 | # Visual C++ cache files 105 | ipch/ 106 | *.aps 107 | *.ncb 108 | *.opendb 109 | *.opensdf 110 | *.sdf 111 | *.cachefile 112 | *.VC.db 113 | *.VC.VC.opendb 114 | 115 | # Visual Studio profiler 116 | *.psess 117 | *.vsp 118 | *.vspx 119 | *.sap 120 | 121 | # Visual Studio Trace Files 122 | *.e2e 123 | 124 | # TFS 2012 Local Workspace 125 | $tf/ 126 | 127 | # Guidance Automation Toolkit 128 | *.gpState 129 | 130 | # ReSharper is a .NET coding add-in 131 | _ReSharper*/ 132 | *.[Rr]e[Ss]harper 133 | *.DotSettings.user 134 | 135 | # TeamCity is a build add-in 136 | _TeamCity* 137 | 138 | # DotCover is a Code Coverage Tool 139 | *.dotCover 140 | 141 | # AxoCover is a Code Coverage Tool 142 | .axoCover/* 143 | !.axoCover/settings.json 144 | 145 | # Coverlet is a free, cross platform Code Coverage Tool 146 | coverage*.json 147 | coverage*.xml 148 | coverage*.info 149 | 150 | # Visual Studio code coverage results 151 | *.coverage 152 | *.coveragexml 153 | 154 | # NCrunch 155 | _NCrunch_* 156 | .*crunch*.local.xml 157 | nCrunchTemp_* 158 | 159 | # MightyMoose 160 | *.mm.* 161 | AutoTest.Net/ 162 | 163 | # Web workbench (sass) 164 | .sass-cache/ 165 | 166 | # Installshield output folder 167 | [Ee]xpress/ 168 | 169 | # DocProject is a documentation generator add-in 170 | DocProject/buildhelp/ 171 | DocProject/Help/*.HxT 172 | DocProject/Help/*.HxC 173 | DocProject/Help/*.hhc 174 | DocProject/Help/*.hhk 175 | DocProject/Help/*.hhp 176 | DocProject/Help/Html2 177 | DocProject/Help/html 178 | 179 | # Click-Once directory 180 | publish/ 181 | 182 | # Publish Web Output 183 | *.[Pp]ublish.xml 184 | *.azurePubxml 185 | # Note: Comment the next line if you want to checkin your web deploy settings, 186 | # but database connection strings (with potential passwords) will be unencrypted 187 | *.pubxml 188 | *.publishproj 189 | 190 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 191 | # checkin your Azure Web App publish settings, but sensitive information contained 192 | # in these scripts will be unencrypted 193 | PublishScripts/ 194 | 195 | # NuGet Packages 196 | *.nupkg 197 | # NuGet Symbol Packages 198 | *.snupkg 199 | # The packages folder can be ignored because of Package Restore 200 | **/[Pp]ackages/* 201 | # except build/, which is used as an MSBuild target. 202 | !**/[Pp]ackages/build/ 203 | # Uncomment if necessary however generally it will be regenerated when needed 204 | #!**/[Pp]ackages/repositories.config 205 | # NuGet v3's project.json files produces more ignorable files 206 | *.nuget.props 207 | *.nuget.targets 208 | 209 | # Microsoft Azure Build Output 210 | csx/ 211 | *.build.csdef 212 | 213 | # Microsoft Azure Emulator 214 | ecf/ 215 | rcf/ 216 | 217 | # Windows Store app package directories and files 218 | AppPackages/ 219 | BundleArtifacts/ 220 | Package.StoreAssociation.xml 221 | _pkginfo.txt 222 | *.appx 223 | *.appxbundle 224 | *.appxupload 225 | 226 | # Visual Studio cache files 227 | # files ending in .cache can be ignored 228 | *.[Cc]ache 229 | # but keep track of directories ending in .cache 230 | !?*.[Cc]ache/ 231 | 232 | # Others 233 | ClientBin/ 234 | ~$* 235 | *~ 236 | *.dbmdl 237 | *.dbproj.schemaview 238 | *.jfm 239 | *.pfx 240 | *.publishsettings 241 | orleans.codegen.cs 242 | 243 | # Including strong name files can present a security risk 244 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 245 | #*.snk 246 | 247 | # Since there are multiple workflows, uncomment next line to ignore bower_components 248 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 249 | #bower_components/ 250 | 251 | # RIA/Silverlight projects 252 | Generated_Code/ 253 | 254 | # Backup & report files from converting an old project file 255 | # to a newer Visual Studio version. Backup files are not needed, 256 | # because we have git ;-) 257 | _UpgradeReport_Files/ 258 | Backup*/ 259 | UpgradeLog*.XML 260 | UpgradeLog*.htm 261 | ServiceFabricBackup/ 262 | *.rptproj.bak 263 | 264 | # SQL Server files 265 | *.mdf 266 | *.ldf 267 | *.ndf 268 | 269 | # Business Intelligence projects 270 | *.rdl.data 271 | *.bim.layout 272 | *.bim_*.settings 273 | *.rptproj.rsuser 274 | *- [Bb]ackup.rdl 275 | *- [Bb]ackup ([0-9]).rdl 276 | *- [Bb]ackup ([0-9][0-9]).rdl 277 | 278 | # Microsoft Fakes 279 | FakesAssemblies/ 280 | 281 | # GhostDoc plugin setting file 282 | *.GhostDoc.xml 283 | 284 | # Node.js Tools for Visual Studio 285 | .ntvs_analysis.dat 286 | node_modules/ 287 | 288 | # Visual Studio 6 build log 289 | *.plg 290 | 291 | # Visual Studio 6 workspace options file 292 | *.opt 293 | 294 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 295 | *.vbw 296 | 297 | # Visual Studio LightSwitch build output 298 | **/*.HTMLClient/GeneratedArtifacts 299 | **/*.DesktopClient/GeneratedArtifacts 300 | **/*.DesktopClient/ModelManifest.xml 301 | **/*.Server/GeneratedArtifacts 302 | **/*.Server/ModelManifest.xml 303 | _Pvt_Extensions 304 | 305 | # Paket dependency manager 306 | .paket/paket.exe 307 | paket-files/ 308 | 309 | # FAKE - F# Make 310 | .fake/ 311 | 312 | # CodeRush personal settings 313 | .cr/personal 314 | 315 | # Python Tools for Visual Studio (PTVS) 316 | __pycache__/ 317 | *.pyc 318 | 319 | # Cake - Uncomment if you are using it 320 | # tools/** 321 | # !tools/packages.config 322 | 323 | # Tabs Studio 324 | *.tss 325 | 326 | # Telerik's JustMock configuration file 327 | *.jmconfig 328 | 329 | # BizTalk build output 330 | *.btp.cs 331 | *.btm.cs 332 | *.odx.cs 333 | *.xsd.cs 334 | 335 | # OpenCover UI analysis results 336 | OpenCover/ 337 | 338 | # Azure Stream Analytics local run output 339 | ASALocalRun/ 340 | 341 | # MSBuild Binary and Structured Log 342 | *.binlog 343 | 344 | # NVidia Nsight GPU debugger configuration file 345 | *.nvuser 346 | 347 | # MFractors (Xamarin productivity tool) working folder 348 | .mfractor/ 349 | 350 | # Local History for Visual Studio 351 | .localhistory/ 352 | 353 | # BeatPulse healthcheck temp database 354 | healthchecksdb 355 | 356 | # Backup folder for Package Reference Convert tool in Visual Studio 2017 357 | MigrationBackup/ 358 | 359 | # Ionide (cross platform F# VS Code tools) working folder 360 | .ionide/ 361 | 362 | # Fody - auto-generated XML schema 363 | FodyWeavers.xsd -------------------------------------------------------------------------------- /GooseGooseDuck/Form1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | using System.Windows.Forms; 10 | using System.Threading; 11 | using System.Runtime.InteropServices; 12 | 13 | namespace GooseGooseDuck 14 | { 15 | public partial class Form1 : Form 16 | { 17 | GetMemory gm = new GetMemory(); 18 | float old_position_x = 0, old_position_y = 0; 19 | ulong XYhookDump; 20 | string xarr = "01ACA7C0"; 21 | string xarroffset1 = "48"; 22 | string xarroffset2 = "370"; 23 | string xarroffset3 = "10"; 24 | string xarroffset4 = "60"; 25 | string xarroffset5 = "2C"; 26 | 27 | 28 | ulong SpeedDump; 29 | string speedarr = "03C22000"; 30 | string Speedoffset1 = "80"; 31 | string Speedoffset2 = "80"; 32 | string Speedoffset3 = "20"; 33 | string Speedoffset4 = "B8"; 34 | string Speedoffset5 = "270"; 35 | 36 | ulong spaceDump; 37 | string spacearr = "03C814B0"; 38 | string spaceoffset1 = "40"; 39 | string spaceoffset2 = "B8"; 40 | string spaceoffset3 = "0"; 41 | string spaceoffset4 = "20"; 42 | string spaceoffset5 = "1B0"; 43 | 44 | ulong killDump; 45 | string killarr = "03C814B0"; 46 | string killoffset1 = "40"; 47 | string killoffset2 = "B8"; 48 | string killoffset3 = "0"; 49 | string killoffset4 = "20"; 50 | string killoffset5 = "250"; 51 | 52 | 53 | float current_position_x, current_position_y; 54 | 55 | 56 | public Form1() 57 | { 58 | InitializeComponent(); 59 | } 60 | 61 | private void Form1_Load(object sender, EventArgs e) 62 | { 63 | gm.get_handel(); 64 | xyset(); 65 | speedset(); 66 | spaceset(); 67 | killset(); 68 | 69 | label5.Text = trackBar1.Value.ToString(); 70 | timer1.Enabled = true; 71 | } 72 | 73 | 74 | private void speedset() { 75 | SpeedDump = gm.get_memory_ulong(gm.GameAssembly + Convert.ToUInt64(speedarr, 16), 8); 76 | SpeedDump = gm.get_memory_ulong(SpeedDump + Convert.ToUInt64(Speedoffset1, 16), 8); 77 | SpeedDump = gm.get_memory_ulong(SpeedDump + Convert.ToUInt64(Speedoffset2, 16), 8); 78 | SpeedDump = gm.get_memory_ulong(SpeedDump + Convert.ToUInt64(Speedoffset3, 16), 8); 79 | SpeedDump = gm.get_memory_ulong(SpeedDump + Convert.ToUInt64(Speedoffset4, 16), 8); 80 | SpeedDump = SpeedDump + Convert.ToUInt64(Speedoffset5, 16); 81 | } 82 | 83 | private void xyset() { 84 | XYhookDump = gm.get_memory_ulong(gm.UnityPlayer + Convert.ToUInt64(xarr, 16), 8); 85 | XYhookDump = gm.get_memory_ulong(XYhookDump + Convert.ToUInt64(xarroffset1, 16), 8); 86 | XYhookDump = gm.get_memory_ulong(XYhookDump + Convert.ToUInt64(xarroffset2, 16), 8); 87 | XYhookDump = gm.get_memory_ulong(XYhookDump + Convert.ToUInt64(xarroffset3, 16), 8); 88 | XYhookDump = gm.get_memory_ulong(XYhookDump + Convert.ToUInt64(xarroffset4, 16), 8); 89 | current_position_x = gm.get_memory_float(XYhookDump + Convert.ToUInt64(xarroffset5, 16), 4); 90 | current_position_y = gm.get_memory_float(XYhookDump + Convert.ToUInt64(xarroffset5, 16) + 4, 4); 91 | 92 | label1.Text = current_position_x.ToString(); 93 | label2.Text = current_position_y.ToString(); 94 | label3.Text = "old_X = " + current_position_x.ToString(); 95 | label4.Text = "old_Y = " + current_position_y.ToString(); 96 | old_position_x = current_position_x; 97 | old_position_y = current_position_y; 98 | } 99 | 100 | private void spaceset() { 101 | spaceDump = gm.get_memory_ulong(gm.GameAssembly + Convert.ToUInt64(spacearr, 16), 8); 102 | spaceDump = gm.get_memory_ulong(spaceDump + Convert.ToUInt64(spaceoffset1, 16), 8); 103 | spaceDump = gm.get_memory_ulong(spaceDump + Convert.ToUInt64(spaceoffset2, 16), 8); 104 | spaceDump = gm.get_memory_ulong(spaceDump + Convert.ToUInt64(spaceoffset3, 16), 8); 105 | spaceDump = gm.get_memory_ulong(spaceDump + Convert.ToUInt64(spaceoffset4, 16), 8); 106 | spaceDump = spaceDump + Convert.ToUInt64(spaceoffset5, 16); 107 | } 108 | 109 | private void killset() 110 | { 111 | killDump = gm.get_memory_ulong(gm.GameAssembly + Convert.ToUInt64(killarr, 16), 8); 112 | killDump = gm.get_memory_ulong(killDump + Convert.ToUInt64(killoffset1, 16), 8); 113 | killDump = gm.get_memory_ulong(killDump + Convert.ToUInt64(killoffset2, 16), 8); 114 | killDump = gm.get_memory_ulong(killDump + Convert.ToUInt64(killoffset3, 16), 8); 115 | killDump = gm.get_memory_ulong(killDump + Convert.ToUInt64(killoffset4, 16), 8); 116 | killDump = killDump + Convert.ToUInt64(killoffset5, 16); 117 | } 118 | 119 | private void move() { 120 | if (current_position_x != old_position_x) 121 | { 122 | if (current_position_x - old_position_x > 0) 123 | { 124 | gm.put_memory(XYhookDump + Convert.ToUInt64(xarroffset5, 16), BitConverter.GetBytes(Convert.ToSingle(current_position_x + 1.5))); 125 | } 126 | else if (current_position_x - old_position_x < 0) 127 | { 128 | gm.put_memory(XYhookDump + Convert.ToUInt64(xarroffset5, 16), BitConverter.GetBytes(Convert.ToSingle(current_position_x - 1.5))); 129 | } 130 | 131 | } 132 | if (current_position_y != old_position_y) 133 | { 134 | if (current_position_y - old_position_y > 0) 135 | { 136 | gm.put_memory(XYhookDump + Convert.ToUInt64(xarroffset5, 16) + 4, BitConverter.GetBytes(Convert.ToSingle(current_position_y + 1.5))); 137 | } 138 | else if (current_position_y - old_position_y < 0) 139 | { 140 | gm.put_memory(XYhookDump + Convert.ToUInt64(xarroffset5, 16) + 4, BitConverter.GetBytes(Convert.ToSingle(current_position_y - 1.5))); 141 | } 142 | 143 | } 144 | 145 | } 146 | 147 | private void button1_Click(object sender, EventArgs e) 148 | { 149 | gm.get_handel(); 150 | xyset(); 151 | speedset(); 152 | spaceset(); 153 | timer1.Enabled = true; 154 | 155 | } 156 | 157 | private void timer1_Tick(object sender, EventArgs e) 158 | { 159 | current_position_x = gm.get_memory_float(XYhookDump + Convert.ToUInt64(xarroffset5, 16), 4); 160 | current_position_y = gm.get_memory_float(XYhookDump + Convert.ToUInt64(xarroffset5, 16) + 4, 4); 161 | 162 | label1.Text = "X = " + current_position_x.ToString(); 163 | label2.Text = "Y = " + current_position_y.ToString(); 164 | label3.Text = "old_X = " + old_position_x.ToString(); 165 | label4.Text = "old_Y = " + old_position_y.ToString(); 166 | 167 | if (checkBox1.Checked == true) 168 | { 169 | gm.put_memory(SpeedDump, BitConverter.GetBytes(Convert.ToSingle(trackBar1.Value))); 170 | } 171 | 172 | if (checkBox2.Checked == true) { 173 | move(); 174 | } 175 | 176 | if (checkBox3.Checked == true) { 177 | gm.put_memory(spaceDump, BitConverter.GetBytes(Convert.ToSingle(0))); 178 | } 179 | if (checkBox4.Checked == true) 180 | { 181 | gm.put_memory(killDump, BitConverter.GetBytes(Convert.ToSingle(0))); 182 | } 183 | 184 | current_position_x = gm.get_memory_float(XYhookDump + Convert.ToUInt64(xarroffset5, 16), 4); 185 | current_position_y = gm.get_memory_float(XYhookDump + Convert.ToUInt64(xarroffset5, 16) + 4, 4); 186 | old_position_x = current_position_x; 187 | old_position_y = current_position_y; 188 | } 189 | 190 | private void timer2_Tick(object sender, EventArgs e) 191 | { 192 | 193 | } 194 | 195 | private void button2_Click(object sender, EventArgs e) 196 | { 197 | gm.put_memory(XYhookDump + Convert.ToUInt64(xarroffset5, 16), BitConverter.GetBytes(Convert.ToSingle(textBox1.Text))); 198 | gm.put_memory(XYhookDump + Convert.ToUInt64(xarroffset5, 16) + 4 , BitConverter.GetBytes(Convert.ToSingle(textBox2.Text))); 199 | } 200 | 201 | private void label1_Click(object sender, EventArgs e) 202 | { 203 | 204 | } 205 | 206 | private void timer2_Tick_1(object sender, EventArgs e) 207 | { 208 | 209 | } 210 | 211 | private void trackBar1_Scroll(object sender, EventArgs e) 212 | { 213 | label5.Text = trackBar1.Value.ToString(); 214 | } 215 | 216 | private void checkBox2_CheckedChanged(object sender, EventArgs e) 217 | { 218 | 219 | } 220 | 221 | private void button1_Click_1(object sender, EventArgs e) 222 | { 223 | gm.get_handel(); 224 | xyset(); 225 | speedset(); 226 | spaceset(); 227 | killset(); 228 | timer1.Enabled = true; 229 | } 230 | 231 | private void checkBox3_CheckedChanged(object sender, EventArgs e) 232 | { 233 | 234 | } 235 | 236 | private void button3_Click(object sender, EventArgs e) 237 | { 238 | textBox1.Text = current_position_x.ToString(); 239 | textBox2.Text = current_position_y.ToString(); 240 | } 241 | 242 | private void checkBox1_CheckedChanged(object sender, EventArgs e) 243 | { 244 | 245 | } 246 | } 247 | } -------------------------------------------------------------------------------- /GooseGooseDuck/Form1.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace GooseGooseDuck 2 | { 3 | partial class Form1 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.components = new System.ComponentModel.Container(); 32 | this.timer1 = new System.Windows.Forms.Timer(this.components); 33 | this.label1 = new System.Windows.Forms.Label(); 34 | this.label2 = new System.Windows.Forms.Label(); 35 | this.checkBox1 = new System.Windows.Forms.CheckBox(); 36 | this.label3 = new System.Windows.Forms.Label(); 37 | this.label4 = new System.Windows.Forms.Label(); 38 | this.button2 = new System.Windows.Forms.Button(); 39 | this.textBox1 = new System.Windows.Forms.TextBox(); 40 | this.textBox2 = new System.Windows.Forms.TextBox(); 41 | this.button3 = new System.Windows.Forms.Button(); 42 | this.trackBar1 = new System.Windows.Forms.TrackBar(); 43 | this.label5 = new System.Windows.Forms.Label(); 44 | this.checkBox2 = new System.Windows.Forms.CheckBox(); 45 | this.button1 = new System.Windows.Forms.Button(); 46 | this.checkBox3 = new System.Windows.Forms.CheckBox(); 47 | this.checkBox4 = new System.Windows.Forms.CheckBox(); 48 | ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).BeginInit(); 49 | this.SuspendLayout(); 50 | // 51 | // timer1 52 | // 53 | this.timer1.Interval = 1; 54 | this.timer1.Tick += new System.EventHandler(this.timer1_Tick); 55 | // 56 | // label1 57 | // 58 | this.label1.AutoSize = true; 59 | this.label1.Location = new System.Drawing.Point(223, 15); 60 | this.label1.Name = "label1"; 61 | this.label1.Size = new System.Drawing.Size(60, 15); 62 | this.label1.TabIndex = 2; 63 | this.label1.Text = "x position"; 64 | this.label1.Click += new System.EventHandler(this.label1_Click); 65 | // 66 | // label2 67 | // 68 | this.label2.AutoSize = true; 69 | this.label2.Location = new System.Drawing.Point(223, 40); 70 | this.label2.Name = "label2"; 71 | this.label2.Size = new System.Drawing.Size(60, 15); 72 | this.label2.TabIndex = 3; 73 | this.label2.Text = "y position"; 74 | // 75 | // checkBox1 76 | // 77 | this.checkBox1.AutoSize = true; 78 | this.checkBox1.Location = new System.Drawing.Point(118, 12); 79 | this.checkBox1.Name = "checkBox1"; 80 | this.checkBox1.Size = new System.Drawing.Size(84, 19); 81 | this.checkBox1.TabIndex = 4; 82 | this.checkBox1.Text = "speedHack"; 83 | this.checkBox1.UseVisualStyleBackColor = true; 84 | this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); 85 | // 86 | // label3 87 | // 88 | this.label3.AutoSize = true; 89 | this.label3.Location = new System.Drawing.Point(223, 67); 90 | this.label3.Name = "label3"; 91 | this.label3.Size = new System.Drawing.Size(79, 15); 92 | this.label3.TabIndex = 5; 93 | this.label3.Text = "old_x positon"; 94 | // 95 | // label4 96 | // 97 | this.label4.AutoSize = true; 98 | this.label4.Location = new System.Drawing.Point(223, 93); 99 | this.label4.Name = "label4"; 100 | this.label4.Size = new System.Drawing.Size(82, 15); 101 | this.label4.TabIndex = 6; 102 | this.label4.Text = "old_y position"; 103 | // 104 | // button2 105 | // 106 | this.button2.Location = new System.Drawing.Point(118, 90); 107 | this.button2.Name = "button2"; 108 | this.button2.Size = new System.Drawing.Size(88, 27); 109 | this.button2.TabIndex = 7; 110 | this.button2.Text = "Teleport"; 111 | this.button2.UseVisualStyleBackColor = true; 112 | this.button2.Click += new System.EventHandler(this.button2_Click); 113 | // 114 | // textBox1 115 | // 116 | this.textBox1.Location = new System.Drawing.Point(12, 90); 117 | this.textBox1.Name = "textBox1"; 118 | this.textBox1.Size = new System.Drawing.Size(100, 23); 119 | this.textBox1.TabIndex = 8; 120 | // 121 | // textBox2 122 | // 123 | this.textBox2.Location = new System.Drawing.Point(12, 124); 124 | this.textBox2.Name = "textBox2"; 125 | this.textBox2.Size = new System.Drawing.Size(100, 23); 126 | this.textBox2.TabIndex = 9; 127 | // 128 | // button3 129 | // 130 | this.button3.AccessibleName = ""; 131 | this.button3.Location = new System.Drawing.Point(118, 123); 132 | this.button3.Name = "button3"; 133 | this.button3.Size = new System.Drawing.Size(88, 23); 134 | this.button3.TabIndex = 10; 135 | this.button3.Text = "load position"; 136 | this.button3.UseVisualStyleBackColor = true; 137 | this.button3.Click += new System.EventHandler(this.button3_Click); 138 | // 139 | // trackBar1 140 | // 141 | this.trackBar1.Location = new System.Drawing.Point(12, 12); 142 | this.trackBar1.Maximum = 100; 143 | this.trackBar1.Minimum = 1; 144 | this.trackBar1.Name = "trackBar1"; 145 | this.trackBar1.Size = new System.Drawing.Size(100, 45); 146 | this.trackBar1.TabIndex = 12; 147 | this.trackBar1.Value = 10; 148 | this.trackBar1.Scroll += new System.EventHandler(this.trackBar1_Scroll); 149 | // 150 | // label5 151 | // 152 | this.label5.AutoSize = true; 153 | this.label5.Location = new System.Drawing.Point(118, 34); 154 | this.label5.Name = "label5"; 155 | this.label5.Size = new System.Drawing.Size(38, 15); 156 | this.label5.TabIndex = 13; 157 | this.label5.Text = "speed"; 158 | // 159 | // checkBox2 160 | // 161 | this.checkBox2.AutoSize = true; 162 | this.checkBox2.Location = new System.Drawing.Point(12, 63); 163 | this.checkBox2.Name = "checkBox2"; 164 | this.checkBox2.Size = new System.Drawing.Size(50, 19); 165 | this.checkBox2.TabIndex = 14; 166 | this.checkBox2.Text = "벽뚫"; 167 | this.checkBox2.UseVisualStyleBackColor = true; 168 | this.checkBox2.CheckedChanged += new System.EventHandler(this.checkBox2_CheckedChanged); 169 | // 170 | // button1 171 | // 172 | this.button1.Location = new System.Drawing.Point(227, 124); 173 | this.button1.Name = "button1"; 174 | this.button1.Size = new System.Drawing.Size(75, 23); 175 | this.button1.TabIndex = 15; 176 | this.button1.Text = "scan"; 177 | this.button1.UseVisualStyleBackColor = true; 178 | this.button1.Click += new System.EventHandler(this.button1_Click_1); 179 | // 180 | // checkBox3 181 | // 182 | this.checkBox3.AutoSize = true; 183 | this.checkBox3.Location = new System.Drawing.Point(12, 166); 184 | this.checkBox3.Name = "checkBox3"; 185 | this.checkBox3.Size = new System.Drawing.Size(118, 19); 186 | this.checkBox3.TabIndex = 16; 187 | this.checkBox3.Text = "모든 능력 쿨타임"; 188 | this.checkBox3.UseVisualStyleBackColor = true; 189 | this.checkBox3.CheckedChanged += new System.EventHandler(this.checkBox3_CheckedChanged); 190 | // 191 | // checkBox4 192 | // 193 | this.checkBox4.AutoSize = true; 194 | this.checkBox4.Location = new System.Drawing.Point(12, 191); 195 | this.checkBox4.Name = "checkBox4"; 196 | this.checkBox4.Size = new System.Drawing.Size(106, 19); 197 | this.checkBox4.TabIndex = 17; 198 | this.checkBox4.Text = "오리 킬 쿨타임"; 199 | this.checkBox4.UseVisualStyleBackColor = true; 200 | // 201 | // Form1 202 | // 203 | this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); 204 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 205 | this.ClientSize = new System.Drawing.Size(379, 241); 206 | this.Controls.Add(this.checkBox4); 207 | this.Controls.Add(this.checkBox3); 208 | this.Controls.Add(this.button1); 209 | this.Controls.Add(this.checkBox2); 210 | this.Controls.Add(this.label5); 211 | this.Controls.Add(this.trackBar1); 212 | this.Controls.Add(this.button3); 213 | this.Controls.Add(this.textBox2); 214 | this.Controls.Add(this.textBox1); 215 | this.Controls.Add(this.button2); 216 | this.Controls.Add(this.label4); 217 | this.Controls.Add(this.label3); 218 | this.Controls.Add(this.checkBox1); 219 | this.Controls.Add(this.label2); 220 | this.Controls.Add(this.label1); 221 | this.Name = "Form1"; 222 | this.Text = "Form1"; 223 | this.Load += new System.EventHandler(this.Form1_Load); 224 | ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).EndInit(); 225 | this.ResumeLayout(false); 226 | this.PerformLayout(); 227 | 228 | } 229 | 230 | #endregion 231 | private System.Windows.Forms.Timer timer1; 232 | private Label label1; 233 | private Label label2; 234 | private CheckBox checkBox1; 235 | private Label label3; 236 | private Label label4; 237 | private Button button2; 238 | private TextBox textBox1; 239 | private TextBox textBox2; 240 | private Button button3; 241 | private TrackBar trackBar1; 242 | private Label label5; 243 | private CheckBox checkBox2; 244 | private Button button1; 245 | private CheckBox checkBox3; 246 | private CheckBox checkBox4; 247 | } 248 | } --------------------------------------------------------------------------------