Navigation

    Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    bulk-edition of more than 8000 files

    Help wanted · · · – – – · · ·
    3
    3
    1505
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Holger Gräf
      Holger Gräf last edited by

      Hello,

      unfortunaltely my joomla installation got infected. All of the php-files contain malware and must be desinfected. This would be easy cause the malware is just a code in front of the regular joomla code that sits between an opening an a closing php-tag. The problem ist that there are more than 8000 of those files. It takes months to ope each file, mark the code, delete them and save the desinfected file back to the server.

      So, how can I make Notepad++ doing the work for me?

      It needs to scan each of the files for the first <?php and the first ?> and delete everything between, including the both php-tags, and save the file.

      If you have a solution please let me know.

      Thanks
      Holger

      1 Reply Last reply Reply Quote 1
      • Jim Dailey
        Jim Dailey last edited by

        @Holger-Gräf Learn and then use a scripting language like AWK, PERL, or Python.

        1 Reply Last reply Reply Quote 0
        • Eric Force
          Eric Force last edited by

          Hi Holger. I might be able to help . Just go to my contact form below and send me a sample file. Best regards, Eric Force

          http://ericsbanners.com/contact.htm

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright © 2014 NodeBB Forums | Contributors