• Login
Community
  • Login

bulk-edition of more than 8000 files

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
3 Posts 3 Posters 1.8k Views
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.
  • H
    Holger Gräf
    last edited by Aug 7, 2017, 4:19 PM

    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
    • J
      Jim Dailey
      last edited by Aug 7, 2017, 6:57 PM

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

      1 Reply Last reply Reply Quote 0
      • E
        Eric Force
        last edited by Aug 8, 2017, 9:24 PM

        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
        1 out of 3
        • First post
          1/3
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors