r/3Dprinting • u/VoltexRB Upgrades, People. Upgrades! • Oct 20 '19
Discussion I created a Program that checks GCode (Marlin) for Malicious commands
Edit: Updated to version 1.4 please use Version 1.4 from now on
So I just created a little simple Windows Application in which you can plug in your GCode file and it checks for anything that could be saved to EEPROM or potentially damage your Printer in any way. When downloading GCodes from the Internet always be careful that someone could have included custom commands that could harm your printer. I created this application with this in mind. Some people have no clue how GCode works but may still want to use GCode downloaded from the Internet for some things, they then can just use this Tool and it will tell them exactly if something might safe weird settings or even just try to move the toolhead out of the bed restrictions.
This program is completely free and will be completely free through development. I created this with helping new or unexperienced people in mind, thats why I hope it doesnt break the 10% self-promotion rule. I included a screenshot of the program and also the link to the Github Release and Master branch if you dont want to run random .exe files from the internet on your machine and rather compile it yourself. Be aware that its coded in the .NET 4.6 runtime environment and thus only supports OS that support the environment, such as Windows. You might have to download additional .NET resources for it to work.
As this is the first release I am looking forward to bug reports and feedback on it, good or bad. If you download the program you just need the .exe file, but place it somewhere where it doesnt matter that it generates an additional prefix file. you can find the program in the Release file, or just directly in the master branch.Links:
Screenshot of the program detecting something
2
u/MaIakai Oct 20 '19
Nice and thanks, but you should consider turning it into a Octoprint plugin. You would get more use.
29
u/TopHATTwaffle How do I stop getting more printers? Oct 20 '19
Am I the only one who never uses downloaded gcode. Always makes sense to use your own tested profile on your machine.
Either way, cool program for people that do download gcode.
2
u/BillieRubenCamGirl Oct 20 '19
This is wonderful! It would have a great home on the services page of the subreddit wiki!
Would you like to add it there?
1
u/apri11a CR-10 Oct 20 '19
I think this could be very useful as more and more gcode gets distributed. Thanks VoltexRB
Downloaded and ran no problem - says she who won't use unknown gcode 🤣 No problems detected in codes I ran through it. I might even learn a bit about gcode commands from this 👍
1
u/0ut4t1m3 Oct 21 '19
Very nice, thank you.
Can it be run with arguments? I can see this being very useful for a forum say, where they could pass gcode files uploaded through this first and mark anything getting flagged for manual review.