General :: Shell Script For Testing Connectivity Via URL?

Aug 5, 2010

I have comma separated file containing 3 fields:

Name,Shortcode,URL
Example of file is
Sony,52525,http://17.0.0.1/xyz
NDTV,53636,http://10.0.0.1/abc

Now i want to test every URL connectivity from my server by executing it using shell script and if url gives back response it shows output as "OK" in green color and if url is not responding it shows "NOT CONNECTED" in red color.

Output will be like following:

Sony 52525 OK
NDTV 53636 NOT CONNECTED

View 2 Replies


ADVERTISEMENT

Server :: Testing Scripts From Shell?

Jan 18, 2011

How can I test a script that's written to receive arguments from an html form, from the shell?

View 6 Replies View Related

Programming :: Testing Interactive Shell $- $PS1

Mar 22, 2010

I'm writing a bash script that can be run by crontab or by a user interactively.

If the script is run by a user interactively, it will ask for a parameter interactively.

If the script is run by the crontab, it validates if a command line parameter is provided.

In doing so, I cannot get these tests to work inside the bash script

Code:

This shell is not interactive

How the tests be done inside a script?

View 5 Replies View Related

Ubuntu Security :: Testing Shell Codes In 10.10

Feb 9, 2011

I am learning exploit development and learning some stuff about shellcodes now! The shellcode is absolutely right and have tested it. I am using the following code...(created by me) to run my shellcode..

Code:
// #include<stdio.h> we will not be needing this as we are not using any functions from the C library...Just basic logic of Pointers..
char shellcode[] = "x31xc0xb0x01x31xdbxb3x07xcdx80"; // basic exit shellcode
int main()
{ int *ret; // a simple integer pointer pointing a address
ret = (int *)&ret + 2; // change the address pointed by
(*ret) = (int)shellcode; }

Compiling :-
Code:
aneesh@aneesh-laptop:~/articles/C$ gcc test.c -o test -fno-stack-protector
Compiling gives no errors as expected..

Now the problem I am facing is that As I run the program :-
Code:
aneesh@aneesh-laptop:~/articles/C$ ./test
Segmentation fault

Strace output :-
Code:
aneesh@aneesh-laptop:~/articles/C$ strace ./test
execve("./test", ["./test"], [/* 37 vars */]) = 0 .....
set_thread_area({entry_number:-1 -> 6, base_addr:0xb78016c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0xf5e000, 8192, PROT_READ) = 0
mprotect(0x8049000, 4096, PROT_READ) = 0
mprotect(0x15c000, 4096, PROT_READ) = 0
munmap(0xb7802000, 81274) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Segmentation fault

I have some feeling that its because the program has no access to the memory containing the shellcode (May be???)..

View 2 Replies View Related

Ubuntu Networking :: AR5001 Chipset - Wireless Networking Randomly Loses Connectivity And Can Not Regain Connectivity

Jun 25, 2011

Wife's laptop has AR5001 Wireless Adapter laptop model is Toshiba Satellite A215

Problem : Wireless networking randomly loses connectivity and can not regain connectivity, the only apparent solution is a full power down , this is not even certain to work. The card works under Windows, she hates Windows. (I love her for this) I know it's not faulty hardware , because it will work for days on end under Windows without problems.

Things I've tried : madwifi drivers (any and all versions available) : These increase stability of the signal and seem to delay the inevitable however it still happens. When using these drivers the only option is to unload them modprobe -r then reboot then remove them again and re add them. It makes no sense why this works, and if I don't remove them prior to rebooting it will not work.

ATH5K drivers : These are pretty much junk, results are unpredictable at best, sometimes it will work perfectly for a few hours, sometimes it will not work at all. Nothing is repeatable, I can't seem to force whatever condition is causing this. rfkill does not show the wifi being blocked (hard or soft), unblocking it anyway does nothing, only way to make this work and it's iffy is to fully power down wait 5-10 minutes turn it back on and it MAY decide to work.

Firmware update : Updated the Toshiba BIOS to the latest version of the firmware 2.0 no joy here either. Same issue both sets of drivers.

Tried different distros and kernels : I've tried Mint 9, 10 ,11 ; Ubuntu 10.10, 10.04 , 9.10 and 11.04 (which is currently installed) , Fedora and OpenSUSE. All are giving the same problems. I have also tried a slew of different kernels no joy from any of them (I'm not at the computer with the issue now I will post exactly what kernel versions I've used when I have access to the machine).

Another useful bit of information, the hard switch to disable/enable wifi WILL disable it but turning it back on does absolutely nothing. The hotkey does nothing at all. The bios does not have an option to disable or enable the wireless card.

I will also post the typical lsmod , lspci , iwconfig all that good stuff when I get back to the computer in question. I'm probably just going to buy a PC card for it and give up on that one, but this is driving me insane and I would really like to see it resolved even if I do replace the hardware.

View 3 Replies View Related

General :: $HOME/.bashrc Disabled When User Shell Is 'rbash' (restricted Shell)?

Jun 15, 2011

MACHINE: HP Proliant DL260G5OS: SLES 11 SP1kernel: Linux xserver 2.6.32.12-0.7-default #1 SMP 2010-05-20 11:14:20 +0200 x86_64 x86_64 x86_64 GNU/LinuxIt is used as remote xserver in a LAN.I have configured /usr/lib/restricted/bin/.rbashrc with some environment variables but when the users logon in the system finally is executed $HOME/.bashrc and some environment vars are overwritten.

View 2 Replies View Related

General :: Share Internet Connectivity To Another NIC?

Apr 25, 2011

I would like to share my internet connectivity on eth0 with another computer on eth1.

+-----------+ +-----------+ +-----------+
| | | | | |
|ADSL Router|-------------| Computer |-------------|NFS Client |
| | eth0| |eth1 | |
| | dhcp| |static | |
+-----------+ +-----------+ +-----------+

How can i maintain this network topology and allow internet connectivity with dns across my main computer?

View 3 Replies View Related

General :: AT Command For GPRS Connectivity?

Dec 7, 2010

I read that "ATDT*99#" is used to create a GPRS connection through a GSM/GPRS modem how exactly this AT command works.

View 4 Replies View Related

General :: Wireless Connectivity To BTHomehub

Dec 28, 2010

My reinstalled OS Linux Lite ( version 1.0.9.E) connects fine with cable but Broadband BT hub does not support the protocol for wireless.Is there a Linux download which will solve this?

View 7 Replies View Related

General :: Internet Connectivity Via Dial-up Connection

Feb 17, 2009

I'm using Linux Mandrake 9.0 on my Dell 750MHz laptop. Linux is not making a dial-up connection, but modem test showed passed. Is there any utility to fix this problem. I have to often use dial-up connection.

View 1 Replies View Related

General :: No Wifi And Ethernet Connectivity On Ubuntu 9.10 / Get Those?

Jan 4, 2011

I have a Toshiba Satellite L55 S5105 Laptop with "Atheros AR8152 PCI-E fast ethernet controller"
and "Realtek RT8188CE Wireless LAN 802.11n PCI-E "

I have ubuntu9.10 running on this[dual boot].
For some reason there is no wifi and ethernet connectivity.

Are the drivers not installed? where and how do I start to troubleshoot this problem.

View 4 Replies View Related

General :: Trying To Test PHP Connectivity To Postgresql 8.3.9 Setup

Aug 4, 2010

I'm learning via baptism by fire method here, and need to test PHP connectivity to a local postgresql 8.3.9 setup. (CentOS 5.5 x86_64). I have got PHP and Postgres both working; I can pull up a test PHP page via web browser, and I can login to postgres via the command line. What I can't figure out is how to test PHP connectivity to the local DB.

I found this test script:
Code:
<?php
$conn = pg_connect ('dbname=template1');
?>

Which I've named, testdb.php - when I run ./testdb.php from the CLI though, I get:
Code:
./testdb.php: line 2: ?php: No such file or directory
./testdb.php: line 3: syntax error near unexpected token '"dbname=template1"'
./testdb.php: line 3: `$database=pg_connect ("dbname=template1");'

I've seen a LOT of pages describing the internal code of the PHP file, but as a newb to this, I don't know how to execute this test. I've ran chmod 755 against the file to verify permissions, but this didnt effect the results. I've also done a "chmod +x testdb.php"
Code:
PHP 5.1.6 (cli) (built: Mar 31 2010 02:39:17)

I realized I wasn't doing this:
Code:
php testdb.php
but when I do, I get this error message now:
"PHP Fatal error: Call to undefined function pg_connect() in /var/www/html/testdb.php on line 3"

View 9 Replies View Related

General :: Write A Shell Script Instead Of Shell Function?

Apr 27, 2011

I would like know when it is necessary or advisable to write a shell script instead of shell function ?

View 3 Replies View Related

General :: Connectivity With Laptop Showing New Dd-wrt - Old Connection Disappeared

Oct 11, 2010

Our laptop all of a sudden will not connect with our usual wifi network connection which has disappeared & now mysteriously shows dd-wrt . It shows an internet connection has been establihed with dd-wrt but does not work.

View 1 Replies View Related

General :: JDBC Connectivity (From Java To MySQL Database)

Apr 22, 2011

I have installed open suse linux 11.3. I have mysql database and jdk 1.6.20.0. How do I connect from java to mysql database?

View 2 Replies View Related

General :: Xend Kills Network Connectivity On Boot?

Nov 1, 2010

red hat 5 update 4 64bit. on an interactive boot i can ping -t my vm linux server from my physical MS XP workstation and a vm W2000 64 bit server until xend is started, after that i get destination unreachable. if i choose not to start xend on the interactive boot i retain connectivity. i have read some blogs that imply this might be a bug - is this so? do I need xend on my vm red hat box that is a database server?

View 1 Replies View Related

General :: Improve Wireless Connectivity On MacBook Running Ubuntu?

Jul 22, 2011

I recently installed Ubuntu on my MacBook and it's great. The only problem is the Internet speed... on Mac OS X it is much faster which doesn't surprise me because both have been optimized to run fast.

I was wondering if there was a driver, or similar, that would improve the speed for Ubuntu?

View 1 Replies View Related

General :: Ubuntu 10.10 On Dual Boot PC - Internet Connectivity Lost

Jan 12, 2011

Just installed Ubuntu 10.10 on dual boot computer. Each OS is on separate hard drive with GNOME selection between Ubuntu and Windows 7 Ultimate. Firefox was working fine yesterday when I went to use today, nothing. Email through Thunderbird is down as well.

View 3 Replies View Related

General :: Open A New Shell From A Shell And Switch Between Them?

Jan 18, 2011

I am wondering if I can open a shell or new terminal thing from within the terminal in a unix/linux enviroment. Particularly a commandline only one where there is no GUI. Is this doable? how do I do it?

View 3 Replies View Related

General :: Camangi WebStation - Incredibly Poor Wifi Connectivity - No WPA Not Even WEP Full Support

Nov 11, 2010

Camangi WebStation (android pen tablet)

Incredibly poor Wifi connectivity (No WPA, not even WEP full support), missing ether plug. Easy to freeze. Poor input method. Considerable pricing. poor applications. (not android-market compatible) not well organized web pages.

My impression: You have a right to buy. It is up to you, if you want to. It is your responsibility.

View 6 Replies View Related

General :: Dial-up Connectivity - Configure Kppp With Firewall - Find Lock Files

Mar 16, 2010

I have a desktop computer running Debian Lenny, a 56 K modem, and a dial-up account, currently configured like this: computer -> modem -> UPS -> phone jack

When I run off a Knoppix live CD, I can use kppp to configure pppd (using PAP/CHAP authentication and hardware control flow) to dialup and surf. When I try to user kppp to configure pppd exactly the same way on my hard drive installation, I get nothing. Both my Knoppix live CD and Debian Lenny use exactly the same version of kppp, but the pppd related files in /etc/ppp look a bit different.

Under both Knoppix and Debian Lenny hard drive installation, when I try to connect, the login debug window of kppp shows:

Code:
ATZ
OK
ATM1L1
OK
ATDT [phone number]

At this point I hear the modem dialing out, and when using Knoppix, after a few seconds I see

Code:

Which I think corresponds to my route to the InterNet being established through my ISP. When using the hard drive install, I never see the CONNECT, and all indications are that my modem is not sending authentication information at all, but getting stuck right after dialing out, so that my ISP gets a phone call from a modem which... refuses to speak. I never had any problems before, so I am baffled.

So apparently my system is currently misconfigured in some way which prevents point to point protocol from getting out.

Questions:
I have a firewall on my computer which I set up using guarddog. I have enabled point to point protocol from internet zone to local zone. I know that ppp is a symmetrical protocol, but my understanding is that I do not need to enable point to point from local to internet zone. I have not enabled irc protocol because my understanding is that this is only relevant to software flow control using chat scripts. Does this sound correct? Is there some additional protocol I need to allow in order to use pppd to dial out?

When I reboot my computer (off the hard drive) I sometimes see that the system complaining about a failure to stop every process, and sometimes I see mention of an eth0.pid. I have been looking for lock files; would they all be in /var/run?

When I use kppp to configure pppd, I want to do that as my ordinary user for at least two reasons, correct? don't want to run pppd as root user for security reasons kppp is a GUI and root user can't use X (on Debian)

So I should see in home directory of my ordinary user
.kde/share/config/kppprc
.kde/share/apps/kppp

But not in /root directory, correct? What pppd related processes should I see with ps -ef if everything is working?

View 2 Replies View Related

General :: Testing Fstab Without Restart?

Jan 6, 2011

I need to do some changes to fstab,so i wondering is it possible to test it does it work without restating?Because if add something wrong then linux wont start ssh and i wont be able to access server remotely.What i want to do,is to mount /dev/shm with noexec,nosuid instead none.

View 4 Replies View Related

General :: Apache Server For Testing?

Jun 11, 2010

Iam using red hat linux for testing Apache server.The apache server "httpd" is working and in the web brower when i write "http://localhost" itshow me the apache test page. Well i want to know that where this test page exist and if i want to change this page and add my pwn web page then how can I do it. (My server IP address is 192.168.1.10 Subnet mask 255.255.255.0)

2- An other linux client computer is connection with a switch when it open its brower and write my apache server ip address in the web browser like http://192.168.1.10 it show melinux directory structure instead of apache test page. My client IP address is 192.168.1.20 Subnet mask 255.255.255.0)


3- My last computer running windows xp whic is(IP address 192.168.1.30 subnet mask 255.255.255.0 ) also connection with the switch for testing purpose.When I open IE and type http://1920.168.1.10 it say "page cannot be displayed"

View 2 Replies View Related

General :: Testing - Live CD For Burn-in With Bonnie++?

Mar 31, 2010

Is there a live linux distro that I can use for burn-in? I'd like something that has Bonnie++ on it. I've found other live CDs that have utilities, but nothing with bonnie++ on it.

View 2 Replies View Related

General :: Automated Telnet For Testing Servers

Aug 20, 2009

So I have a script that is supposed to check to see if a mail server is up and responsive. What I want to know is how I can send it the telnet escape character. I've tried:VAR=`(sleep 5;echo quit) | (telnet mailserver.timbuktu.net 25 2>&- )`

This works BUT there is a problem as the mail server may have been accidentally firewalled off. If this happens, my automated checking script will hang. What I want to do is send the escape character so that the '>' prompt comes up. They I should be able to send it "quit" even if it is hung on not getting a response from the server. VAR=`(sleep 5;echo -e '^]';sleep 1;echo quit) | (telnet arhqmg01.usarec.army.mil 25 2>&- )`

The above doesn't work. telnet interprets CTRL+] as '^]' but you can't type '^]' and get the same effect. So I guess what I need is to send the actual keystrokes. Like echo "somenumber" ; echo quit

View 4 Replies View Related

General :: Book On Testing Distributed Systems?

Apr 30, 2011

I'm built an distributed application, and now I want to take some metrics to show how my application works. These metrics includes the time of computation, the time of communication and the amdhal law. I would like to know what tests can be done to show the performance of the application. So, I'm searching for a book or document that shows me what type of tests can be done to show the performance of an application.

View 2 Replies View Related

General :: Fake Block Device For Testing LVM?

Jun 1, 2010

I want to test LVM+Raid. When I was testing ZFS on Solaris, I was able to create regular files, and use those as disks for testing.I tried creating a regular file full of zeros w/ dd, then partitioning that. fdisk seemed to be able to create a partition on the regular file, but mkfs and parted couldn't work with it. Is there any way to create fake block devices for testing?

View 4 Replies View Related

General :: Looking For Online System Testing Environment?

Jul 31, 2010

I would like to find a Linux testing environment , my PC is slow , it is not good to install VM and I do not have laptop , besides , I want to do testing at different places , can advise is there online Linux testing environment ? I just want to test the Linux command .

View 1 Replies View Related

General :: Difference Between Sid (unstable) And Squeeze (testing)?

May 7, 2010

What is the difference between Sid (unstable) and Squeeze (testing)?

Is it better to download Squeeze(testing) rather than Lenny(stable) because the software is more up to date?

Or would I want to get Sid? How unstable is it?

This is for a desktop by the way.

View 6 Replies View Related

General :: Testing Negotiation Between Server And Client?

Apr 11, 2010

How do i test negotiation between server and client for various protocols like:

ppp
pppoe
pptp
L2tp
dhcp

View 5 Replies View Related







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