• How to decompile open or modify a dll as example SLAM
    21 replies, posted
  • Avatar of karl-police
  • How do you decompile and then modify the content inside a dll file? As example the SLAM.exe and SLAM.dll
  • [QUOTE=YourStalker;52358834]Unless it's a dll written with .NET you can't decompile it.[/QUOTE] you can't decompile .net either, only reverse engineer... tools that reconstruct .net dlls are only so good because of the bytecode .net runs on and the fact most people leave symbols on if you know anything about x86 bytecode/assembly and how c/c++ compilers create binaries you can use tools such as x64dbg or ida to statically analyze or runtime analyze it.
  • Avatar of Gonzo
  • What do you want to achieve, because it doesn't feel like you have any idea what are you getting into
  • Avatar of Blinkenn
  • That is not where SLAM's model is located. Models are not in any exe or dll, look inside vpk ([url]https://developer.valvesoftware.com/wiki/VPK[/url]) which you can use a tool to extract the models you request.
  • Avatar of code_gs
  • [QUOTE=Blinkenn;52364748]That is not where SLAM's model is located. Models are not in any exe or dll, look inside vpk ([url]https://developer.valvesoftware.com/wiki/VPK[/url]) which you can use a tool to extract the models you request.[/QUOTE] I think he means the code.
  • Avatar of Kris101
  • Any competent developer would realise it's futile dude, you need the source. Even then, the compilation process will likely be too complicated..
  • Avatar of karl-police
  • [QUOTE=gonzalolog;52363210]What do you want to achieve, because it doesn't feel like you have any idea what are you getting into[/QUOTE] The playable piano, I recently found a program that makes midi into a playable piano sheet. Then I found out you can play piano while using the console so I thought copy paste the sheet into the console and play, sadly it doesn't have enough space and only shows like 3 lines so I have to copy the other lines which is annoying. So I tried to find a console command which this thread explains it more: [url]https://facepunch.com/showthread.php?t=1567370[/url] Sadly the echo command doesn't help me either thats why I wanted to find something inside SLAM which is when you type exec slamlist or something like that it shows alot of lines and strings which shouldn't be possible.
  • Avatar of code_gs
  • I mean, the source code for the SLAM is [URL="https://github.com/LestaD/SourceEngine2007/blob/43a5c90a5ada1e69ca044595383be67f40b33c61/se2007/game/server/hl2/weapon_slam.cpp"]here[/URL] but it doesn't contain what you want, nor am I sure what you're referring to.
  • Avatar of karl-police
  • [QUOTE=code_gs;52371752]I mean, the source code for the SLAM is [URL="https://github.com/LestaD/SourceEngine2007/blob/43a5c90a5ada1e69ca044595383be67f40b33c61/se2007/game/server/hl2/weapon_slam.cpp"]here[/URL] but it doesn't contain what you want, nor am I sure what you're referring to.[/QUOTE] Sorry, but SLAM isn't a half life 2 weapon. I meant this: [url]http://slam.flankers.net/[/url] There are commands one is exec idk it shows all the songs in the console which contains over 30 strings as example maybe it does it like 30 times or something like that there is a new echo for each limit.
  • [QUOTE=karl-police;52374303]Sorry, but SLAM isn't a half life 2 weapon. I meant this: [url]http://slam.flankers.net/[/url] There are commands one is exec idk it shows all the songs in the console which contains over 30 strings as example maybe it does it like 30 times or something like that there is a new echo for each limit.[/QUOTE] It's opensource?
  • Avatar of Handsome Matt
  • what a roller coaster of a thread, try being more specific with what you want next time SLAM is a .NET program, so you can use ILSpy or dotPeek to open it and extract the source code in C#. [editline]18th June 2017[/editline] [QUOTE=kantalketche;52374325]It's opensource?[/QUOTE] also yeah what the fuck [url]https://github.com/SilentSys/SLAM[/url]
  • Avatar of karl-police
  • [QUOTE=Handsome Matt;52374331]what a roller coaster of a thread, try being more specific with what you want next time SLAM is a .NET program, so you can use ILSpy or dotPeek to open it and extract the source code in C#. [editline]18th June 2017[/editline] also yeah what the fuck [url]https://github.com/SilentSys/SLAM[/url][/QUOTE] ye now where does it say like when you do exec list or something like that it puts the list in the console [editline]18th June 2017[/editline] okay so what it does it this it takes items and puts echo infront of each item that means the .txt file gets a echo execute able file or something like that
  • Avatar of AwfulRanger
  • [url]https://github.com/SilentSys/SLAM/blob/33faf30520d2cd4d2cbdf87b3ea9c9009a1e1cc4/SLAM/Form1.vb#L388[/url] exec runs .cfg files slam_tracklist.cfg is just a config that echos the tracks
  • Avatar of karl-police
  • This code: [QUOTE] 'slam_tracklist.cfg Using slam_tracklist_cfg As StreamWriter = New StreamWriter(GameCfgFolder & "slam_tracklist.cfg") slam_tracklist_cfg.WriteLine("echo ""You can select tracks either by typing a tag, or their track number.""") slam_tracklist_cfg.WriteLine("echo ""--------------------Tracks--------------------""") For Each Track In Game.tracks Dim index As String = Game.tracks.IndexOf(Track) If My.Settings.WriteTags Then slam_tracklist_cfg.WriteLine("echo ""{0}. {1} [{2}]""", index + 1, Track.name, "'" & String.Join("', '", Track.tags) & "'") Else slam_tracklist_cfg.WriteLine("echo ""{0}. {1}""", index + 1, Track.name) End If Next slam_tracklist_cfg.WriteLine("echo ""----------------------------------------------""") End Using[/QUOTE] Creates the slam_tracklist.cfg file yeah.
  • Avatar of karl-police
  • So what I could do is make a .txt file then rename it to .cfg open notepad and put echo infront of the lines
  • Avatar of smithy285
  • [QUOTE=Handsome Matt;52375780]what do you want to do[/QUOTE] I might be completely wrong on this, but it actually sounds like all he wants to do is input a long string into the console? Trying to read between the lines, but he mentions that the "exec slamlist" produces a large amount of text in the console, which is what he wants to do, and so wants to find the source of the command in order to do it himself?
  • Avatar of karl-police
  • [QUOTE=smithy285;52377448]I might be completely wrong on this, but it actually sounds like all he wants to do is input a long string into the console? Trying to read between the lines, but he mentions that the "exec slamlist" produces a large amount of text in the console, which is what he wants to do, and so wants to find the source of the command in order to do it himself?[/QUOTE] actually I just need to make .cfg file with echo infront of it for each line this is how it works.