The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    6
    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:
    526
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Brno, Czech Republic
    find / -name name >>log.txt
     
  3. A_1

    A_1 Active Member

    Joined:
    Jan 5, 2007
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    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:
    526
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Brno, Czech Republic
    find / -name cgitelnet >>/root/log.txt ? etc?
     
  5. A_1

    A_1 Active Member

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

    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:
    6
    any one help ?
     
  7. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,482
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
Loading...

Share This Page