LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Blogs > peonuser
User Name
Password

Notices

Uncategorized Entries with no category
Old

Network ports.

Posted 02-12-2015 at 08:38 PM by peonuser

Our goal here to see what is live on the network and how possibly vunerable those machines are. Might be interesting to use with a wifi network.

First lets get the live systems at the moment. You will need to change your code depending on your network,

alive.sh
Code:
 #!/bin/bash
rm goodips
is_alive_ping()
{
  ping -c 1 $1 > /dev/null
  [ $? -eq 0 ] && echo $i >> goodips
}

for i in 192.168.1.{1..255}
...
Member
Posted in Uncategorized
Views 125 Comments 0 peonuser is offline
Old

Pogoplug does linux.

Posted 12-26-2014 at 05:04 PM by peonuser
Updated 12-29-2014 at 03:15 PM by peonuser

A 486 laptop running floppy based Pitux linux connected via rs232 to a Pogoplug v2 running Arch linux. Knew I would find a use for that old laptop yet.

http://4.bp.blogspot.com/-85itCuMmfs...0/SUNP0039.JPG
Member
Posted in Uncategorized
Views 243 Comments 0 peonuser is offline
Old

Microsoft below the surface.

Posted 12-24-2014 at 03:17 PM by peonuser

Microsoft Surface is just another touchpad. Why not get a generic touch pad for a fraction of the cost that will virtually do the same thing.

Member
Posted in Uncategorized
Views 204 Comments 0 peonuser is offline
Old

C conversion.

Posted 12-22-2014 at 01:44 AM by peonuser

The main thing we did was to add a substitution for get(ch) and clrscr();

Original code:
#include<stdio.h>
void main()
{
int n,d=0,j,a[9];
clrscr();
printf("Enter the Integer which u want to Convert Decimal to Binary : ");
scanf("%d",&n);
while(n>0)
{
a[d]=n%2;
n=n/2;
...
Member
Posted in Uncategorized
Views 168 Comments 0 peonuser is offline
Old

list users.

Posted 12-15-2014 at 11:32 PM by peonuser

lsuser.sh
Code:
#=================================
# lsuser - list users
#=================================
# Assignments
# --------------------------------
datafile="/etc/passwd"
# end assignments
#=================================
#
# Data input
#---------------------------------
while read line
do echo $line | cut -d: -f1
done < $datafile
$ chmod +x lsuser.sh...
Member
Posted in Uncategorized
Views 173 Comments 0 peonuser is offline

  



All times are GMT -5. The time now is 09:12 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration