![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 | |
|
Programmer
Join Date: Jul 2005
Posts: 73
Rep Power: 4
![]() |
perl/cgi noob!
from a tutorial:
Quote:
|
|
|
|
|
|
|
#2 |
|
Professional Programmer
|
Unix commands don't exist in Windows, lol.
__________________
% rc4 hexkey < input > output
#define S ,t=s[i],s[i]=s[j],s[j]=t /* rc4 hexkey <file */
unsigned char k[256],s[256],i,j,t;main(c,v,e)char**v;{++v;while(++i)s[
i]=i;for(c=0;*(*v)++;k[c++]=e)sscanf((*v)++-1,"%2x",&e);while(j+=s[i]
+k[i%c]S,++i);for(j=0;c=~getchar();putchar(~c^s[t+=s[i]]))j+=s[++i]S;} |
|
|
|
|
|
#3 |
|
Programmer
Join Date: Jul 2005
Posts: 73
Rep Power: 4
![]() |
well yeah i kind of figured that lol
but anyway, i have http://fatcats.xemoc.net/walnuts.cgi and i cant view it. how would i do this? i upload via FTP using IE |
|
|
|
|
|
#4 |
|
Hobbyist Programmer
Join Date: Aug 2005
Posts: 137
Rep Power: 3
![]() |
Check your server error logs. It will state exactly what the problem is. Most of the time this Internal Server Error is generated by an error in your script but in this case it can't seem to find the ErrorDocument file to show so it could also be a misconfiguration on the server.
|
|
|
|
|
|
#5 | |
|
Programming Guru
![]() Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 4
![]() |
Quote:
|
|
|
|
|
|
|
#6 | |
|
Expert Programmer
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 3
![]() |
Quote:
|
|
|
|
|
|
|
#7 |
|
Programmer
Join Date: Jul 2005
Posts: 73
Rep Power: 4
![]() |
i don't think there's an error in my script...
print "Content-type: text/html\n\n"; print <<"Walnuts"; Some stuff I want to have printed... Walnuts Eof it works perfectly when i run it from command prompt on my computer. edit: ahh i forgot #!/usr/local/bin/perl |
|
|
|
|
|
#8 | ||
|
Professional Programmer
|
Quote:
Quote:
Commands Like chmod Don't Exist on Windows. They simply don't have any use or direct equivalents on any Windows filesystem.
__________________
% rc4 hexkey < input > output
#define S ,t=s[i],s[i]=s[j],s[j]=t /* rc4 hexkey <file */
unsigned char k[256],s[256],i,j,t;main(c,v,e)char**v;{++v;while(++i)s[
i]=i;for(c=0;*(*v)++;k[c++]=e)sscanf((*v)++-1,"%2x",&e);while(j+=s[i]
+k[i%c]S,++i);for(j=0;c=~getchar();putchar(~c^s[t+=s[i]]))j+=s[++i]S;} |
||
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|