euglug.org

[작성자:] admin

  • [Eug-lug] small linux box



    Garl GrigsbyWed Aug 29 15:39:36 PDT 2007

    larry price wrote:
    > https://store.dataevolution.com/ProductDetails.asp?ProductCode=DT-7001
    >
    > This is basically the AMD quasi-embedded internet access device.
    >
    > It actually looks like it would be an excellent platform for hacking
    > projects, it's got a 12-volt power supply so it should be relatively
    > easy to power in a car or solar solution.
    >
    > and it +retails+ for $99 with peripherals.
    >   
    Anybody seriously interested in one of these? I was until I saw the $40 
    shipping **up charge**. Then I saw that they are running a summer deal. 
    You can get 4 units for the price of three. With shipping, then come out 
    to ~$88 each. If, I can find a couple of other interested parties, I'd 
    be willing to organize the purchase. Any takers?
    
    -Garl
    
  • [Eug-lug] skype trouble



    Devin RobinsonTue Aug 28 11:21:20 PDT 2007

    On Tuesday 28 August 2007 09:37:08 am Bob Miller wrote:
    > Neil Parker wrote:
    > > No.  The closest you can get is probably to run your suspicious software
    > > under the control of strace or something similar.  This will report all
    > > system calls made by the process, including attempts to open files.  (I
    > > believe this was exactly how skype's suspicious behavior was discovered.)
    >
    > What, exactly, is suspicious about reading /etc/passwd?
    > /etc/passwd is used to map numeric user IDs to user names.
    > It's also used to map user IDs and names to full names.
    >
    > Does Skype ever display your name or your username?
    
    Skype calls getpwuid()/getgrgid() (which opens /etc/passwd and /etc/group, 
    resp.) to map a UID/GID to it's info (to say, their home directory: 
    ~/.skype ?), nothing special.
    
    dlab at blackbox /opt/skype$ readelf -s skype | egrep 'get(pw|gr)'
       179: 00000000   478 FUNC    GLOBAL DEFAULT  UND getpwuid_r at GLIBC_2.1.2 (17)
       679: 00000000   478 FUNC    GLOBAL DEFAULT  UND getgrgid_r at GLIBC_2.1.2 (17)
    
    What you should be worried about is why skype has references 
    to /proc/interrupts and parts of it's contents in memory. Possibly to 
    generate a unique ID for your box:
    
    dlab at blackbox /tmp/skype$ strings skype-bin | grep /proc
    /proc/meminfo
    /proc/interrupts
    /proc/stat
    /proc/sys/kernel/ostype
    /proc/sys/kernel/osrelease
    /proc/%1/exe
    
    dlab at blackbox /tmp/skype$ strings skype-heap | grep IO-APIC
     17:   17380080          0          0          0   IO-APIC-fasteoi   ahci, 
    uhci_hcd:usb3
     18:    2489214          0          0          0   IO-APIC-fasteoi   libata, 
    uhci_hcd:usb4
     19:    2058330          0          0          0   IO-APIC-fasteoi   HDA 
    Intel, uhci_hcd:usb5
     20:     275144          0          0          0   IO-APIC-fasteoi   
    ehci_hcd:usb1, uhci_hcd:usb2
    
    .. and how the binary is obfuscated so you have to dump it's memory with gdb 
    after it decrypts parts of the binary.
    
    dlab at blackbox /opt/skype$ strings skype | grep -c proc
    0
    dlab at blackbox /opt/skype$ 
    
    Thanks,
    -------------- next part --------------
    A non-text attachment was scrubbed...
    Name: not available
    Type: application/pgp-signature
    Size: 189 bytes
    Desc: This is a digitally signed message part.
    Url : http://euglug.org/pipermail/euglug/attachments/20070828/3c72ee5b/attachment.pgp
    
  • [Eug-lug] skype trouble



    Michael MillerTue Aug 28 11:09:27 PDT 2007

    I think people are more or less wondering why the client is looking at
    anything in the /etc directory.  It's not like your password is stored
    in the /etc/passwd file (anymore).  Any user can look at the
    /etc/passwd file, it's not a big deal (IMHO).  Unless skype is trying
    to harvest usernames to try and send e-mail messages to other users on
    your machine.  Which is unlikely but possible.  I don't really see a
    reason why a VoIP client would need to look in /etc/, the only file
    system access should be to your home directory IMHO.
    
    -Miller
    
    On 8/28/07, Bob Miller <kbob at jogger-egg.com> wrote:
    > Neil Parker wrote:
    >
    > > No.  The closest you can get is probably to run your suspicious software
    > > under the control of strace or something similar.  This will report all
    > > system calls made by the process, including attempts to open files.  (I
    > > believe this was exactly how skype's suspicious behavior was discovered.)
    >
    > What, exactly, is suspicious about reading /etc/passwd?
    > /etc/passwd is used to map numeric user IDs to user names.
    > It's also used to map user IDs and names to full names.
    >
    > Does Skype ever display your name or your username?
    >
    > --
    > Bob Miller                              K<bob>
    >                                         kbob at jogger-egg.com
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    >
    
  • [Eug-lug] skype trouble



    Bob MillerTue Aug 28 09:37:08 PDT 2007

    Neil Parker wrote:
    
    > No.  The closest you can get is probably to run your suspicious software
    > under the control of strace or something similar.  This will report all
    > system calls made by the process, including attempts to open files.  (I
    > believe this was exactly how skype's suspicious behavior was discovered.)
    
    What, exactly, is suspicious about reading /etc/passwd?
    /etc/passwd is used to map numeric user IDs to user names.
    It's also used to map user IDs and names to full names.
    
    Does Skype ever display your name or your username?
    
    -- 
    Bob Miller                              K<bob>
                                            kbob at jogger-egg.com
    
  • [Eug-lug] skype trouble



    Bill BarryTue Aug 28 06:44:20 PDT 2007

    On 8/27/07, Neil Parker <nparker at lyl.llx.com> wrote:
    > Jim K wrote,
    > >Just a thought, is there any command that would show what program had
    > >last accessed a file?
    >
    > No.  The closest you can get is probably to run your suspicious software
    > under the control of strace or something similar.  This will report all
    > system calls made by the process, including attempts to open files.  (I
    > believe this was exactly how skype's suspicious behavior was discovered.)
    >
    >
    > If you have kernel 2.6.13 or later, there is a set of system calls known
    > collectively as "inotify", which provide a way for programs to monitor
    > files and receive notification whenever somebody does something to a
    > monitored file (such as try to read from it).  This could be used to write
    > a program to raise an alarm whenever something reads from /etc/passwd.
    >
    > Unfortunately, my system (Slackware 11, which shipped with a 2.4 kernel)
    > includes no such software, nor any easy way to write such software (the
    > necessary header files and libc support are missing).  Newer distros
    > might not be crippled like this...if anybody out there knows of a decent
    > user interface for inotify, this would be an ideal occasion to mention it.
    >
    
    There is a Debian package inotify-tools which contains a program
    called inotifywatch which is a user space tool for accessing the
    inotify system calls.  inotifywatch will record all file events for
    the files you specify during the period you specify.  It does not
    however capture which process accessed the file.
    
  • [Eug-lug] skype trouble



    Neil ParkerMon Aug 27 23:03:39 PDT 2007

    Jim K wrote,
    >Just a thought, is there any command that would show what program had
    >last accessed a file?
    
    No.  The closest you can get is probably to run your suspicious software
    under the control of strace or something similar.  This will report all
    system calls made by the process, including attempts to open files.  (I
    believe this was exactly how skype's suspicious behavior was discovered.)
    
    
    If you have kernel 2.6.13 or later, there is a set of system calls known
    collectively as "inotify", which provide a way for programs to monitor
    files and receive notification whenever somebody does something to a
    monitored file (such as try to read from it).  This could be used to write
    a program to raise an alarm whenever something reads from /etc/passwd.
    
    Unfortunately, my system (Slackware 11, which shipped with a 2.4 kernel)
    includes no such software, nor any easy way to write such software (the
    necessary header files and libc support are missing).  Newer distros
    might not be crippled like this...if anybody out there knows of a decent
    user interface for inotify, this would be an ideal occasion to mention it.
    
                   - Neil Parker
    
  • [Eug-lug] OT: C question



    Fred JamesMon Aug 27 22:51:05 PDT 2007

    Bob Miller wrote:
    
    >Fred James wrote:
    >
    >  
    >
    >>I need to build a string into a character array (which I know how to 
    >>do).  But one of the characters needs to be 'Ctrl-T' - any ideas?  Thank 
    >>you in advance for any help you may be able to offer
    >>    
    >>
    >
    >    char my_string[] = "Type ? for Tenex";
    >    my_string[5] = 'T' & 0x1F;
    >
    >or...
    >
    >    const char my_string[] = "Two for \x14 and \x14 for two";
    >
    >Is that what you're looking for?
    >
    >  
    >
    Bob Miller
    Thanks - yes actually, something sort of like that - it works and it has 
    got me off and running.
    Regards
    Fred James
    
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: http://euglug.org/pipermail/euglug/attachments/20070828/9d11f477/attachment.htm
    
  • [Eug-lug] skype trouble



    Hal PomeranzMon Aug 27 19:30:01 PDT 2007

    > You could also use lsof to see if skype opens that file for reading
    
    The file access would probably be nearly instantaneous.  It's unlikely
    that you'd catch it with lsof.
    
    -- 
    Hal Pomeranz, Founder/CEO      Deer Run Associates      hal at deer-run.com
        Network Connectivity and Security, Systems Management, Training
    
  • [Eug-lug] skype trouble



    larry priceMon Aug 27 18:28:48 PDT 2007

    You could also use lsof to see if skype opens that file for reading
    
    
    
    On 8/27/07, Jim K <kjim9 at clearwire.net> wrote:
    > I saw slashdot had a note that skype accesses the /etc/passwd file.
    > Because I have used skype occasionally I am somewhat concerned. As a
    > quick and dirty script would this detect such access:
    > ls -l --time=atime shadow >>somelogfile
    > ls -l --time=atime passwd >>somelogfile
    > ls -l --time=ctime shadow >>somelogfile
    > ls -l --time=ctime passwd >>somelogfile
    >  atime being access and ctime being use. I will play around to see if ls
    > affects atime. I am more concerned about reading the passwd and
    > especially shadow file then just listing the directory /etc.
    > Jim K
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    >
    
  • [Eug-lug] skype trouble



    Jim KMon Aug 27 18:11:38 PDT 2007

    I saw slashdot had a note that skype accesses the /etc/passwd file.
    Because I have used skype occasionally I am somewhat concerned. As a
    quick and dirty script would this detect such access:
    ls -l --time=atime shadow >>somelogfile
    ls -l --time=atime passwd >>somelogfile
    ls -l --time=ctime shadow >>somelogfile
    ls -l --time=ctime passwd >>somelogfile
     atime being access and ctime being use. I will play around to see if ls
    affects atime. I am more concerned about reading the passwd and
    especially shadow file then just listing the directory /etc.
    Jim K