GFXVoid Graphic Design Forum

Remove Text Formatting
New [19-01, 18:02] Coconut: Got wished happy birthday yesterday by GFXVoid....damn I'm old
New [31-01, 16:50] Gaaf: We’re all old lol. Love how everyone is still checking in once in a while
New [05-02, 15:05] Chris:
New [02-06, 15:56] cc.RadillacVIII: Glad to see my imageshack hosted smilies are still operational
New [04-06, 22:51] kailu: sure miss this place
New [11-11, 18:12] Skatanic_: Hi
New [18-11, 19:34] Sexercise: Howdy!
New [15-12, 20:24] Scrib: Wow, it’s been a long time
New [15-12, 20:25] Scrib: joined in 09, last post no idea when - hope all the old faces are doing brilliant
New [06-01, 07:04] shiv96: Oi fuckers
New [06-01, 07:04] shiv96: miss this place sometimes, happy new year
New [24-01, 04:42] +Josh Fx: Happy 2023 fuckers
New [25-01, 00:48] Pet: Another year of the void just sitting on a host somewhere.... xD
New [25-01, 04:59] +Josh Fx: GFXvoid will never die
New [25-01, 04:59] +Josh Fx: Not going to lie it'll be a sad day the day I go on here and it's gone forever
New [06-02, 19:22] ColdDegree: Happy 2023 my friends
New [03-05, 07:51] Deadloader: Wow, I have a strong nostalgia for this place. Orange name reppin
New [13-05, 02:23] Viporizer: It's been too long.
New [13-05, 02:25] Viporizer: Aww the board I was active in have not seen an update since 2018... The good days are over I guess
New [13-05, 02:36] +hm.Alucard1973: Hi Hi
New [03-06, 10:33] +s9.Oath: been a long time
New [30-07, 20:34] cC.Agitator: We’re still alive
New [10-10, 02:52] Viporizer:
New [26-12, 13:42] Daemon: Unkillable forum!
New [11-05, 14:42] Derosion: The endless void, still up. Incredible.
New [01-09, 10:10] Chris: Certainly impressive :P
New [01-09, 10:13] Chris: I'm not allowed to make any more forum posts,because my post count is "1,337"
New [07-09, 23:57] Psypher: Wow this site is still up! Hello to the next person that comes along!
New [23-09, 13:51] asdfasdfasdf: Hello, Psypher
New [03-01, 15:50] marioman77: :O

» Online Users: 517

0 members and 517 guests
No Members online

» Site Navigation

 > FAQ

» Stats

Members: 35,442
Threads: 103,075
Posts: 826,688
Top Poster: cc.RadillacVIII (7,429)
Welcome to our newest member, Lekelindids
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2004
    Location
    Buffalo Grove, Illinois
    Posts
    350

    Default

    This tutorial will teach you how to create a simple and easy redirection script. An example of how to use this script would be Example.cgi?http://www.google.com which would redirect to http://www.google.com

    Code:
    #!/usr/bin/perl
    
    print "Location: $ENV{QUERY_STRING}\n\n";

  2. #2
    Join Date
    Jun 2005
    Posts
    2

    Default

    Do NOT use that code. CGIs are very dangerous if handled without hackers in mind.

    Printing the QUERY_STRING unmodified can trash your entire server or site depending on your permission schemes.

    This is why (do NOT play with this code unless you know what you're doing!):

    http://my-host.com/naive-redirect.cgi?%40%...%2F%60%20%5D%7D

    That will interpret to "@{[ `rm -rf /` ]}" and the "rm" command will be executed on the server your CGI is on. It could also be used for mischief like snooping passwords instead of outright destruction.

    In any CGI, no matter the language (PHP, Perl, Ruby, Java, anything) you must never print user input without checking it. Otherwise you flirt with disaster.

  3. #3
    Join Date
    Jan 2006
    Location
    NY
    Posts
    120

    Default

    seems complicated, what does the print function do anyway?
    -

Similar Threads

  1. i need an image upload script
    By Skyline in forum The Void
    Replies: 4
    Last Post: 02-20-2006, 05:17 PM
  2. Simple Slideshow Script
    By dmeister in forum Other Tutorials
    Replies: 3
    Last Post: 08-05-2005, 05:22 AM
  3. Simple Redirection
    By demo in forum Other Tutorials
    Replies: 3
    Last Post: 07-11-2005, 06:05 PM
  4. Perl: Random Quotes
    By demo in forum Other Tutorials
    Replies: 1
    Last Post: 06-16-2005, 08:37 PM
  5. Perl: Displaying Server Information
    By demo in forum Other Tutorials
    Replies: 1
    Last Post: 03-02-2005, 06:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBadvanced CMPS v4.1.1