Community
    • Login

    bulk-edition of more than 8000 files

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 3 Posters 2.0k Views 2 Watching
    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äfH Offline
      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 DaileyJ Offline
        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 ForceE Offline
          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

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors