NetAdminTools.com
 
SignalQ Sites:
NetAdminTools - Coprolite - NoNIC - SpotBridge - NAW
RoboCoop - AreWeDown - SolarPower - SysAdminTools
Xfig - Gold Loaf - GeekPapa - FixGMC - MCJ - FixRambler
Categories:
GNU/Linux | Homebrew designs | Perl | Administration | Backup/Recovery | Bugs/Fixes | Certification | Database | Email | File/Print | Hardware | Information Grab Bag | Interoperability | GNU/Linux ABCs | Monitoring | Name Resolution | Network Services | Networking | Remote Control | Security | Desktop | Web | BSD | Solaris | GIAGD | REALbasic

Last 30 Days | Last 60 Days | Last 90 Days | All Articles | RSS | Hail Support


Categories:
·GNU/Linux
·Homebrew designs
·Perl
·Administration
·Backup/Recovery
·Bugs/Fixes
·Certification
·Database
·Email
·File/Print
·Hardware
·Information Grab Bag
·Interoperability
·GNU/Linux ABCs
·Monitoring
·Name Resolution
·Network Services
·Networking
·Remote Control
·Security
·Desktop
·Web
·BSD
·Solaris
·GIAGD
·REALbasic
·All Categories


Using uClibc For Control Systems
Topic: GIAGD   Posted:2003-03-01
Printer Friendly: Print

spacerspacer
We wrote about keylogging in this article, and used gcc and Linux to intercept and decode a key push via the parallel port. We have also written in the past about various homebrew projects where a limited development system would be very useful. The perfect platform for many of these projects is discarded PCs that can't run a full OS well. There is a project called uClibc that provides a stripped down version of glibc, a gcc compiler, and a full set of OS utilities. We will show how to bring up various stand-alone versions of this in the future; however, we will give you a taste of what this project can provide in this article.

We used the root_fs-i386.bz2, avalable here. This is an ext2 filesystem image that we can uncompress, mount, and chroot to:

root@srv-1 u-1 # bzip2 -d root_fs-i386.bz2
root@srv-1 u-1 # mount -t ext2 -o loop ./root_fs-i386 /mnt
root@srv-1 u-1 # chroot /mnt
root@srv-1 / # du
0       ./lost+found
2111    ./bin
8       ./etc/init.d
130     ./etc
.
.
.
52146   ./usr
0       ./var/lib
0       ./var/empty
0       ./var
0       ./dev/pts
0       ./dev
57138   .
root@srv-1 / #

OK. That is pretty cool. An entire system under 58 megs. Now, to build a standalone system, we will need a kernel and some other stuff, and we will do this in other articles. What we really want to know, though, is could this system compile the keylog program:

 
root@srv-1 / # gcc logkey.c
root@srv-1 / # ./a.out
Q
root@srv-1 / #

Oh yeah! Stay tuned. More to come.




Please read our Terms of Use
Microsoft, Windows, Windows XP, Windows 2003, Windows 2000, and NT are either trademarks or registered trademarks of Microsoft Corporation. NetAdminTools.com is not affiliated with Microsoft Corporation. Linux is a registered trademark of Linus Torvalds, and refers to the Linux kernel. The operating system of most distributions that contain the Linux kernel is GNU/Linux. All logos and trademarks in this site are property of their respective owner. Copyright 1997-2008 NetAdminTools.com

Created by:
MCJ
MCJ CMS