Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7676989
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:19:24+00:00 2026-05-31T17:19:24+00:00

I found this code on a hacked site, what does it do exactly? It

  • 0

I found this code on a hacked site, what does it do exactly? It appears to mess with some file permissions, how can it allow an attacker entry?

http://pastebin.com/jFaFdyKQ

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T17:19:25+00:00Added an answer on May 31, 2026 at 5:19 pm

    well this isn’t that evil… Are you sure this is the ‘hacked’ part?

    As you can see the bottom few lines are commented out, so they don’t do anything. The only ‘active’ code lines are:

    system('chmod -R 744 *');
    system('find . -type d -exec chmod 755 {} \;');
    

    The system() function executes a command on the server itself. So you have to look to the commands given, which are unix commands:

    chmod -R 744 *
    find . -type d -exec chmod 755 {} \;
    

    The first line says; change the file permissions recursively (everything in this working directory, including it’s children) to modus 744 (all-read-read).
    The second line finds all directories in the current working directory and changes the modus to 755, which is in fact standard for directories (and equivalent to chmod +X -R ./*, when executed directly after the first command)

    To be honest, I don’t see any harm done, as directories get the standard permissions, files only some extra permissions for the owner of the file. It would be dangerous when also group and world would get all permissions…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Well I found this code , after running this I got some activity (as
I found this code in some website, and it works perfectly. It validates that
Possible Duplicate: Got Hacked - Anyone know what this PHP Code Does? I just
My wordpress site has been hacked. Through this program: http://sitecheck.sucuri.net/ (...) i found that
I found this code snippet here , but I just can't figure out what
i found this code: protected override void OnSourceInitialized(EventArgs e) { base.OnSourceInitialized(e); HwndSource hwndSource =
I found this code using Google. private int RandomNumber(int min, int max) { Random
I found this code for alphanumeric check (Letters, numbers, spaces or underscores) but I
i found this code at activestate, it takes a string and prints permutations of
I found this code from here: http://www.cssportal.com/form-elements/text-box.htm But the problem is you can still

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.