![]() |
|
I need a simple script that I can run on linux. Either it be a javascript or bash. - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Coders Lounge (https://hackforums.net/forumdisplay.php?fid=5) +---- Thread: I need a simple script that I can run on linux. Either it be a javascript or bash. (/showthread.php?tid=5596375) |
I need a simple script that I can run on linux. Either it be a javascript or bash. - Leroy Jethro Gibbs - Apr 10, 2017 So pretty much, I'm dealing with an annoying deface on a website I got access too. I don't have the ability to wipe the DB and I need to clear pretty much all of the submitted testimonials. I need a script that counts up by one and navigates to a link. So something like this. Goto http://sitehere/admin/delete_testimonial.php?id=1 id=1+1 goto http://sitehere/admin/delete_testimonial.php?id=2 id=2+1 etc. Probably the shittiest example known to man but its what I need lol. If anyone can help, thanks! * - Brill - Apr 10, 2017 This is the wrong section, bud. * - Leroy Jethro Gibbs - Apr 10, 2017 (Apr 10, 2017 02:30 AM)Brill Wrote: This is the wrong section, bud. Shit. My bad. I clicked on the wrong shit when I was posting this. Can an admin/staff move this please? * - SIM-3468354 - Apr 10, 2017 Create two variables, ID that starts at 1, and one that is the total amount of entries that you want to delete. Setup a loop so that it constantly checks to see if the ID is greater than the total amount and if not it goes to "http://sitehere/admin/delete_testimonial.php?id=1 id=ID+1" and then adds 1 to the ID. * - Leroy Jethro Gibbs - Apr 10, 2017 (Apr 10, 2017 02:34 AM)Wild Yak Wrote: Create two variables, ID that starts at 1, and one that is the total amount of entries that you want to delete. Not sure how to make that kind of script. I was hoping someone could do it for me since I'm kinda in a rush and don't have the time I need to learn the shit myself. * - Asset - Apr 10, 2017 Working on this. Will update. EDIT: Alright, I am not professional, so this code might be broken, but I gave it a shot. I know that Javascript code loaded in the console will not be there when a page is reloaded. So, I approached it with iFrame, because I suppose something will happen when a page is loaded. Make a html file with following code: https://pastebin.com/raw/FFyHjQbF * - Leroy Jethro Gibbs - Apr 10, 2017 (Apr 10, 2017 02:38 AM)Asset Wrote: Working on this. Will update. Thanks man! |