Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

how search ?

Discussion in 'General Discussion' started by A_1, Sep 19, 2007.

  1. A_1

    A_1 Active Member

    Joined:
    Jan 5, 2007
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    156
    Hello,

    if i need search for shells file, like that .
    Code:
    cgitelnet|webadmin|PHPShell|tryag|r57shell|c99shell|noexecshell
    how can i search for this files in /home/ and input the path of shells in /root/resualt.txt

    can any one tell me how can i do that >

    thanks,
     
  2. katmai

    katmai Well-Known Member

    Joined:
    Mar 13, 2006
    Messages:
    533
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Brno, Czech Republic
    find / -name name >>log.txt
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. A_1

    A_1 Active Member

    Joined:
    Jan 5, 2007
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    156
    can u please type the full code with this

    Code:
    cgitelnet|webadmin|PHPShell|tryag|r57shell|c99shell|noexecshell
    and some one tell me search like that


    egrep"cgitelnet|webadmin|PHPShell|tryag|r57shell|c99shell|noexecshell|/etc/passwd|revengans" /home/*/public_html -R | cut -d: -f1 | uniq > /root/result.txt


    but the code not working fine ,
     
    #3 A_1, Sep 19, 2007
    Last edited: Sep 19, 2007
  4. katmai

    katmai Well-Known Member

    Joined:
    Mar 13, 2006
    Messages:
    533
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Brno, Czech Republic
    find / -name cgitelnet >>/root/log.txt ? etc?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. A_1

    A_1 Active Member

    Joined:
    Jan 5, 2007
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    156

    no i dont mean that ,

    i mean i want find all thise files,

    cgitelnet|webadmin|PHPShell|tryag|r57shell|c99shell|noexecshell

    using only one command
     
  6. A_1

    A_1 Active Member

    Joined:
    Jan 5, 2007
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    156
    any one help ?
     
  7. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,479
    Likes Received:
    421
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice