General :: Writing A Bash Script In BackTrack3 For IP Addresses?

Dec 7, 2009

I was assigned to write a bash script in backtrack which will reveal the active IP Addresses on a /30 network. Normally I would not have a problem with this, but I just dont understand because would you not need the entire prefix (ex: 192.168.1) in order to ping sweep for a certain IP range?basically what I'm asking is...How do I nmap a list of IP's for a "/30 network" as that's all that we're given.

View 3 Replies


ADVERTISEMENT

General :: Writing In Bash While It Is Working?

May 6, 2011

When you are performing time consuming operations in bash like installing new software, is it possible to write text that will appear at the prompt when the operation has finished.

E.g

Imagine running:

apt-get install eclipse-platform

Then it will use quite a while to finish while you see the installation log, meanwhile I want to create new folders (workspaces) which Eclipse later will use.

Is this possible without opening a new terminal (or tab)?

View 5 Replies View Related

General :: Writing A Bash Shell Script For Website Backup

Aug 10, 2010

I am about to write my first shell script for backing up my server.

These are the steps I have identified so far.

Copy files to be backed up to /srv/backup/ run mysqldump and copy the file to srv/backup/databases run duplicity to backup /srv/backup/* to another folder on my machine

I am writing a bash shell scrip that will be run everyday, and will carry out the three tasks mentioned above.

Note: point 3 (backing up to a local folder) is only a temporary measure - to allow me to understand what I'm doing, since all the tools I am using, are new to me. Once I can backup and restore correctly, I will use duplicity to compress and encrypt the files and upload them offsite.

If my understanding of duplicity is correct (according to the documentation here), the first time I run the script, a FULL backup will be done. Every subsequent backup will then be incremental. I will then force a FULL back on say a weekend.

First things first though - I have a few questions:

I would like to use backup rotation for the 'scheme' described above - I would like some recommendations on what kind/type of rotation to use. Once I have implemented the backup rotation, how can I restore from a particular day back in time (assuming the backup exists of course). ?

I am running Ubuntu 10.0.4

View 1 Replies View Related

General :: Driver Installation In Backtrack3

Jun 16, 2011

i m totally new to linux and i m using backtrack 3. Atheros ar9285 wifi adapter is not recognised by backtrack 3.so i downloaded driver compat-wireless-3.0-rc1-1 from web. but i dont know how to install. so please guide me step by step.

View 4 Replies View Related

Programming :: Bash To Monitor IP Addresses In A Txt File?

Oct 13, 2010

This code uses ping to check connectivity to a remote location and logs it to a .html file which is then stylized by css..

Code:

#! /bin/bash
path="$HOME/Desktop/IP_Monitor" #Path to write out files
ALT="0" #For styling alternative row

[code]....

I need to add a feature such that instead of hardcoding the ip address .. it takes them from a list and makes new files for each ip address for logging.. And also when log files are completed , They should be compressed using tar. How should i go about adding both these.. This is my first bash script.

View 6 Replies View Related

Programming :: Sort IP Addresses For A Bash Program?

Apr 29, 2010

I have for example the following IP addresses:

24.172.220.218
41.239.36.19
63.215.202.234
66.176.124.22

[code]....

How can I sort those IP addresses? I want to sort them using the first 3 numbers I also want to count the number of times that address is repeated This is a batch program.

View 4 Replies View Related

Programming :: Ping IP Addresses Using Bash (Online Or Unavailable)

Jun 14, 2011

I am new to linux and am trying to write a script that will ping IP addresses and say either online or unavailable.

View 3 Replies View Related

Programming :: An Assignment: Writing A Bash Script

Oct 2, 2010

I have assignment to write bash script and I have to submit it after tommorow . I do not have experience to finish it by myself.I am really need help if any one can contact me. on my email I will be thanks him/ her.

View 14 Replies View Related

Programming :: Writing To And Reading From A Socket From Bash Script?

Mar 11, 2010

Here the description of the issue I am having.I am writing a bash test script which reads lines from a file, builds ISO messages, sends them to a server, reads the response with response code and reports the result of the test to a file or on the screen.The message that I need to send is 94 characters long.Here's the portion of a code that I initially wrote:

~ Open socket.
exec 3<>/dev/tcp/172.26.0.25/9991
#~ Send msg.

[code]...

View 7 Replies View Related

Programming :: Writing Shell Snip To Import CSV Data Into Bash Array

Jan 5, 2011

I have been trying to write a simple snip of bash shell code to import from 1 to 100 records into a Bash array.

I have a CSV file that is structured like:
record1,item1,item2,item3,item4
record2,item1,item2,item3,item4
record3,item1,item2,item3,item4
record4,item1,item2,item3,item4

And would like to get this data into corresponding arrays as such:
$record1[item1-4]
$record2[item1-4]
$record3[item1-4]
$record4[item1-4]

View 9 Replies View Related

Slackware :: Writing Basic Bash Script To Toggle Two I8kctl Commands (fan Speed Hi/low)?

Jun 11, 2011

I'm on a Dell Inspiron 6000. I installed i8kutils and it works. Fan speed reduces CPU temp from 50C to 44C. A start-up script invokes the i8k module: $ udo /usr/sbin/modprobe i8k force=1 which creates /proc/i8k. The man page for i8kctl is straightforward: a few simple commands to read info from the aforementioned file.So. I know nothing about writing even basic bash scripts. I gave it a go here but I know this is way wrong. Would anyone like to help a guy out? This is my starting point (don't laugh):

Code:
#!/bin/bash
# script to toggle fan speed low/high

[code]...

View 5 Replies View Related

Networking :: Hacking WEP Key With Backtrack3

Aug 9, 2010

I am new to all this so I don't understand much of the language used in linux or backtrack, but I founded in a forum how to hack wep and I did this steps: I have a IWL 4965 AGN I tried to hack a wireless but I get errors, this is what I did:

1)airmon-ng
wlan0 intel 4965 a/b/g/n iwl 4965 - [phy0]

2)airmon-ng stop wlan0
wlan0 intel 4965 a/b/g/n iwl 4965 - [phy0]
(monitor mode disabled)

3)ifconfig wlan0 down
4)macchanger --mac 00:11:22:33:44:55 wlan0
Current mac: 00:1d:e0:4f:99:4b (unknown)
faked mac: 00:11:22:33:44:55 (cimsys inc)

5)airmon-ng start wlan0
wlan0 intel 4965 a/b/g/n iwl 4965 - [phy0]

ERROR: Neither the sysfs interface links nor the iw command is available.
Please download and install iw from dl.aircrack-ng.org/iw.tar.bz2
So I downloaded this from the Page and tried to install it.

6)cd '/root/iw'
iw# make
CC iw.o
iw.c:11:31: error: netlink/genl/genl.h: No such file or directory
iw.c:12:33: error: netlink/genl/family.h: No such file or directory
iw.c:13:33: error: netlink/genl/ctrl.h: No such file or directory
iw.c:14:25: error: netlink/msg.h: No such file or directory
iw.c:15:26: error: netlink/attr.h: No such file or directory
iw.c: In function 'nl80211_init':
iw.c:25: error: implicit declaration of function 'nl_handle_alloc'
iw.c:25: warning: assignment makes pointer from integer without a cast
iw.c:31: error: implicit declaration of function 'genl_connect'
iw.c:37: error: implicit declaration of function 'genl_ctrl_alloc_cache'
iw.c:37: warning: assignment makes pointer from integer without a cast
iw.c:44: error: implicit declaration of function 'genl_ctrl_search_by_name'
iw.c:44: warning: assignment makes pointer from integer without a cast
iw.c:54: error: implicit declaration of function 'nl_cache_free'
iw.c:56: error: implicit declaration of function 'nl_handle_destroy'
iw.c: In function 'nl80211_cleanup':
iw.c:62: error: implicit declaration of function 'genl_family_put'
make: *** [iw.o] Error 1

View 6 Replies View Related

Ubuntu Networking :: Getting Wireless Connected In Backtrack3?

Jun 7, 2011

i am running backtrack3 with vmware station in window 7. but the problem is when i enter iwconfig it does not show my alpha awus036h. it does not detect my alpha card. if anybody can help me regarding the same???
i have already tried to set it in vmware station menu bar vm=>removable devices to get my wireless but it showing a usb device connected... not showing my wireless..

View 1 Replies View Related

Hardware :: Wireless Card Not Showing In Backtrack3?

Feb 27, 2009

I have a Toshiba laptop with an Intel Pro Wireless 3945 wireless adapter. If I boot backtrack from a CD, the wireless card is found and I can run airsnort and collect packets. When I use vmaware to boot backtrack3, my wireless card is not found. My network connection is set to bridge in vmware. Does this have something to do with windows using the wireless adapter at the same time vmware is?

View 1 Replies View Related

Programming :: Line By Line Reading And Writing In Bash?

Nov 29, 2010

I have a text file (myfile.txt) with columns a,b,c.

123 2 23
124 2 24
125 2 22

[code]...

View 4 Replies View Related

Ubuntu Servers :: Writing Init Script - Signals To Kill The Process (Ctrl-C) From A Bash Script And Exit Dtach (Ctrl-`)

Dec 5, 2010

I'm trying to write a init.d script to daemonise a sagemath notebook server. Here's what I've done so far, I've copied /etc/init.d/single for the structure, and tried to use dtach to provide a handle to access the process. However, my main problem is issuing the signals to kill the process (Ctrl-C) from a bash script and exit dtach (Ctrl-`)

[Code]...

View 1 Replies View Related

General :: How Virtual Addresses Actually Mapped

Aug 3, 2010

The command cat /proc/PID/maps shows the memory map (virtual addresses) of the process. How these address are actually mapped?

View 3 Replies View Related

General :: New Email Addresses Not Saved?

Dec 5, 2009

I have my email on a separate partition so that my email doesn't get destroyed when I do new linux installs (I have emails from 5 years ago now). I also keep my sylpheed email addressbooks. This partition is writable by anybody and I have also made my user the owner of this partition during each linux install (media/email). When I set up sylpheed I tell it that my email is in /media/email and then it is able to write incoming messages to that location. The problem I am having is that I make symbolic links for my addressbooks from ~/.sylpheed* to /media/email using this:cd ~/.sylpheed*rm addrbook-000001.xmlln -s /media/email/addrbook-000001.xml addrbook-000001.xmlSylpheed finds my addressbook ok on my email partition but changes that symbolic link to a file on ~ when it writes new addresses. What am I doing wrong...I want it to write new addresses to my email partition?

View 4 Replies View Related

General :: Using IP Addresses - Statics And DHCP

Sep 17, 2010

In school, use SUSE Server and made it by DHCP but in my hand I changed many rules. All are OK at the start but now they requested that they who are principal, and vice principals are want to use the Internet without filtering.

So I've made new rules by using Webmin software to control the SUSE Server. 1st I've gave static IP from LAN x.x.x.40 to x.x.x.45. 2nd IP is x.x.x.12 to x.x.x.15.

At First, there's nothing happen but now I've got problems because Server gave DHCP so that Server gives IP itself and conflict with static IPs. And also I can't find in Webmin software how to disable the DHCP Assign.

View 6 Replies View Related

General :: Printing Addresses On Envelopes?

Nov 18, 2010

I almost never boot windows anymore - but there is one thing I miss

In msword I was able to print addresses on envelopes and/or labels

I have not found that capacity on fedora 13 with Abiword and Open Office writer

Is it there seomwhere?

View 4 Replies View Related

General :: ProFTPd Deny All Except Certain IP Addresses?

May 19, 2010

How can I configure proFTPd to deny all unless:User is part of group: ftpguysClient IP matches either: 1.1.1.1 or 2.2.2.2 or 3.3.3.3I already have the config file (proftpd.conf) setup to only allow users who are part of the group ftpguys. To do that I use this:

Code:
<Limit LOGIN>
AllowGroup ftpguys

[code]...

View 7 Replies View Related

General :: Configuring SSL To Recognize Two Different IP Addresses

Oct 6, 2009

I have a webserver setup for myself with two domains. Both need ssl. I am running fedora 10 Apache/mod_ssl. I am trying to configure ssl.conf to recognize two different IP addresses, one for each domain.

Each has their own Vhost containers (NamedVirtualHHost)
<VirtualHost 192.xxx xxx x01 :443>
blabla
blabla
</VirtualHost>


<VirtualHost 192.xxx xxx x02 :443>
blabla
blabla
</VirtualHost>

I call https... first site works ok. I call https....second site it calls the first ssl cert (bad cert). Apache does not separate the two. My question, how do I get apache to deliver https..domain_one and domain_two correctly?

View 3 Replies View Related

General :: Write A Literal Bash Command In A Bash File?

Nov 29, 2010

I create a bash script that writes another bash file. But in the generated bash file I want to write a bash command in the file and not executing it.Here's my bash file:

Code:
#!/bin/bash
cat > ~/generateGridmix2data.sh << END

[code]...

View 6 Replies View Related

General :: Running Bash But Common Bash Commands Not Working?

Jul 17, 2010

below are the details of my system. I have bash as my current shell, some really common commands aren't working.

Do I need to do a re-installation of bash? Or how do I install a selection of bash commands which I need? (for example a subset of [URL])

Code:
root@sdptfw:~ # uname -a
Linux sdptfw.sdpt.co.za 2.4.36 #1 Tue Jul 22 13:13:24 GMT 2008 i686 i686 i386 GNU/Linux
root@sdptfw:~ # echo $SHELL$
/bin/bash$

[Code]....

View 13 Replies View Related

General :: Mail Not Sending To Internal Addresses

Sep 4, 2009

I'm using the mail command and I am able to send mail to my gmail account with out any problems. However when I send mail to deco -at- mycompany.com I nothing happens and no mail ever arrives in my mailbox. It might be worth mentioned that my centos5 is a virtual machine on the same server as the company exchange mail server.

View 1 Replies View Related

General :: Virtual Addresses Accessed By An App During Its Execution?

Mar 17, 2010

Get the list of virtual addresses being accessed by any application during its execution time. I don't want the complete memory map but just the pages which were accessed during an application's execution?

View 2 Replies View Related

General :: Logging Into Server Via SSH - Allowed Ip Addresses?

Aug 26, 2010

Is there somewhere in WHM where I can allow and disallow various ip addresses to login using PuTTY for SSH.OpenSSH Server, is not running (for security reasons).If OpenSSH is not running, is there a way to allow certain ip addresses only to use ssh.

View 9 Replies View Related

General :: Give Input As Addresses To Tool Through Awk

Feb 4, 2011

we have a tool called trace which takes a memory address as input and gives the function name corresponding to that as output.I have a file which has around 200 addresses, which needs to be given as input to this trace tool.I can start the tool in this way.There is another file called address.txt from which I need to feed these addresses to this tool.Manually it takes lot of time to give the addresses which are in other file one by one. I have idea about some basic awk one liners.

View 3 Replies View Related

General :: Sending Emails To Outside Email Addresses?

Sep 14, 2010

I have sendmail setup and it works fine sending emails to outside email addresses. When I try and send email to our internal groupwise server the mail never gets there and I get an error message in the log user unknown.

View 1 Replies View Related

General :: Two IP Addresses Could Never Be Assigned To Any Host Computer?

Nov 16, 2010

Could you tell me what two IP addresses could never be assigned to any host computer?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved