Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

I need a simple script that I can run on linux. Either it be a javascript or bash.

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!
This is the wrong section, bud.
(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?
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.
[Image: D2axHRf.gif]
(Apr 10, 2017 02:34 AM)SIM-3468354 Wrote:  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.

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.
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
[Image: aiDpsJ.gif]
SIGNATURE IS A FAVOR, I AM NOT AFFILIATED
(Apr 10, 2017 02:38 AM)Asset Wrote:  Working on this. Will update.

Thanks man!


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Help] by rjusticemiSep 21, 2025 10:25 PM 1 100 Sep 21, 2025 10:25 PM
Last Post: DNA
by HackersJun 4, 2024 11:18 AM 12 318 Jun 4, 2024 11:18 AM
Last Post: Hackers
by NightmareMay 7, 2023 05:42 AM 0 69 May 7, 2023 05:42 AM
Last Post: Nightmare