Jump to content

BigalG

New Members
  • Posts

    7
  • Joined

  • Last visited

BigalG's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks so much; the checkbox info will be a great help, as did your previous. Ive spent today figuring POST/GET with PHP though I understand PHP and HTML shouldnt be used together if possible, so once the box of bolts gets working then its getting methods to work more securely. Got it working as far as file edit goes by clicking on any file it gets into edit mode with a very small no-frills PHP editor, and allows modifying, saving the edited file appropriately. I'll post my work up here in the next days and any (constructive) criticisms appreciated. Happy New Year - its tonight here!
  2. I would like to close this conversation with adding that you gentlemen have no idea of where how this script will be implemented. Did I say the script was live on the server, or active or passive on the server, or in fact on a server at all? Did I say I was a security programmer? there are many hats in the security world. You are both full of assumptions and criticisms. Im an older programmer who has very limited knowledge in html and mediocre php and simply came here for a bit of code help. You both are keen to lambast with your superior knowledge. Im outa here.
  3. Any chance of a bit more help? I have this: ?> <html> <a href="?action=EDIT<?php echo $file; ?>"><?php echo $file; ?></a> <input type="checkbox" name="DELETE" value=<?php echo $file; ?>> <br> </html> <?php and this to bring the buttons in to play: if (count($files) > 0) : if($_SERVER['REQUEST_METHOD'] == 'POST') { if (isset($_POST['btn_fix'])) { fix_files($files); die(); } //elseif (isset($_POST['btn_edit']) && $file!='') editfile($file); elseif (isset($_POST['EDIT']) && $file!='') editfile($file); } print_files($files); ?> <form method="post" action=""> <p> <label for="fix"> <input type="hidden" name="do_fix" value="1" /> Fix File(s): <input type="submit" name="btn_fix" value="FIX" onclick=" var ret1 = confirm('Have you backed up your existing files?'); var ret2 = confirm('Clicking OK means you take full responsibility for any losses; [FIX] can corrupt.'); return ret1 && ret2; " /> </label> <label for="EDIT"> <input type="hidden" name="EDIT" value="2" /> EDIT/VIEW File: <input type="submit" name="btn_edit" value="EDIT" onclick=" var ret3 = confirm('Have you backed up your existing files?'); return ret3; " /> </label> </p> </form> <?php Im getting the following from file click eg: http://localhost/test/hostingscan.php?action=EDIT./bludit/bl-kernel/boot/rules/70.posts.php What Im trying to figure is when the action=EDIT above is clicked how to pick that up in form? Also when DELETE button is pressed, how do I get the file values from the selected items in <input type="checkbox" name="DELETE" value=<?php echo $file; ?>> If you have the time muchly appreciated.
  4. Sorry Jacques Im only going on my own experience. Anyone who uses cpanel should have reasonable backup experience and if not shouldn't be running their host service IMHO. With hands-on of a hackers attack I know whats needed to sort it and if my efforts go someways towards stopping these time wasters then Ive achieved my goal. What you say is valid and appreciated.
  5. Of course the script has password protection, and permission 600. I have killed an extensive hacking effort on my website using this. Originally the wordpress sites were protected by various utilities which didnt help a bit. Im careful with security having been in security business for several years cant say Im perfect but good enough. Anyway, thanks for your concern; I hear what you're saying, but I believe this will be a useful free utility. Regards, Alistair.
  6. SORRY THIS SHOULD BE IN HTML HELP! Hi there. Ive been working on a Web Hosting script to detect hackers. Its working well but now Im at the stage of actioning web page results eg after the script completes, it emails and saves to a file but I'd also like the results that are showing on web page html'd so user can edit and/or delete corrupted files. Below I get a bunch of files with paths. What is needed is to convert the filename to a clickable url, that when clicked instantiates something (my editing script). Also I need a checkbox next to each file, so that when several files are checked, a final [delete all] button starts the delete process on selected files. In other words can anyone help with code <html ------$filename-------------------[checkbox]/html> //for each file in the list And if possible code for a [delete all] that lets me get the checked items to send to the delete function. Thanks kindly. Al. //each of below is a line echo with filenames in a loop as eg echo $file.'<br>'; 15 Possibly infected Files in ./ and below ./index.php ./bludit/index.php ./bludit/cgi-bin/dump.php ./bludit/bl-themes/include.php ./bludit/bl-kernel/admin/controllers/settings.php ./bludit/bl-kernel/admin/controllers/logout.php ./bludit/bl-kernel/admin/controllers/edit-post.php ./bludit/bl-kernel/admin/themes/system20.php ./bludit/bl-kernel/admin/views/cache.php ./bludit/bl-kernel/admin/views/manage-posts.php ./bludit/bl-kernel/helpers/session.class.php ./bludit/files.php ./bludit/start.php ./bludit/bl-content/databases/plugins/disqus/general.php ./bludit/bl-plugins/CustomImageDimensions/plugin.php ............................................... Scan ended; writing to file and email
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.