php forum
php mysql forum
php mysql smarty
 
Page 3 of 9 < 1 2 3 4 5 6 7 8 9 >
Topic Options
#134014 - 05/06/01 07:37 AM Re: [6.0x] ELY_M's Upload Modification
ELY_M Offline
Member

Registered: 03/23/01
Posts: 133

   Re: [6.0x] ELY_M Add to del.icio.us
  Digg Re: [6.0x] ELY_M Digg it
Quote:
quote:



I forgot to add this in my instructions

it is just about cp_vars_misc.pl part in instructions.


Thanks again smile

the zip is updated smile

<FONT COLOR="#000000" SIZE="1">[ May 06, 2001 07:41 AM: Message edited by: ELY_M ]</font>

Top
#134015 - 05/06/01 10:15 AM Re: [6.0x] ELY_M's Upload Modification
Psyc Offline
Junior Member

Registered: 04/20/01
Posts: 11
hi ely,

nice work

but i got a little problem

the upload window shows me an error

do you have any clue why i can't see the upload window?

<FONT COLOR="#000000" SIZE="1">[ May 08, 2001 08:53 AM: Message edited by: cdr700 ]</font>

Top
#134016 - 05/06/01 10:53 PM Re: [6.0x] ELY_M's Upload Modification
ELY_M Offline
Member

Registered: 03/23/01
Posts: 133
I got 500 internal error.

I have no idea, but

you need to make sure the perl path is correct.

Which ubb files you are using on your server.

normal or local files ?


make sure you upload the upload files in ASCII mode in your ftp client.

make sure you chmmod the upload files and the upload folder to 777.

Top
#134017 - 05/07/01 12:21 AM Re: [6.0x] ELY_M's Upload Modification
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25432
Loc: Texas
Looking good ELY_M smile
_________________________
- Allen wavey
- What Drives You?

Top
#134018 - 05/07/01 04:58 AM Re: [6.0x] ELY_M's Upload Modification
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
BTW, What happens if the user uploads .htpasswd and .htaccess files?
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#134019 - 05/07/01 09:39 AM Re: [6.0x] ELY_M's Upload Modification
Psyc Offline
Junior Member

Registered: 04/20/01
Posts: 11
hi ely

i'm using normal files on my server

and i changed mod to 777 upload and the 2 cgi files

could it be that my server does not support if somebody tries to upload something??

but thanks anyways this hack is really cool
i can configure it in cp but it won't work

ok i think i need to work it out

if you got some clues plz tell me

Top
#134020 - 05/07/01 10:08 AM Re: [6.0x] ELY_M's Upload Modification
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
Another thing, you can disable uploads in some forums, but if the user enters cgi-bin/upload_form.cgi, it will upload anyway; also unregistered users can upload, and I don't think I can disable it; and the same thing if I want only admins/mods.
What you can do is make it ultimatebb.cgi?ubb=upload_form (and to not make it confusing I think you should make the upload_form.cgi be ubb_upload_form.cgi and the other one ubb_upload.cgi), and then it will have all login information.
Also, when you'll do it, the CGI path will be in $vars_config{CGIPath} or something like that, so you can just make it automatically $vars_config{CGIPath}/uploads.

Now, your script doesn't work if Variables Path is different than cgi-bin; it will also be fixed after you'll do it if you'll do $vars_config{VariablesPath}.

<FONT COLOR="#000000" SIZE="1">[ May 07, 2001 10:11 AM: Message edited by: LK ]</font>
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#134021 - 05/07/01 10:35 AM Re: [6.0x] ELY_M's Upload Modification
Psyc Offline
Junior Member

Registered: 04/20/01
Posts: 11
hi again,

i found the problem

your path in upload_form.cgi

is #!/usr/bin/perl5

my is #!/usr/bin/perl


so it didn't match and i changed it and now it works

great work man

Top
#134022 - 05/08/01 02:36 AM Re: [6.0x] ELY_M's Upload Modification
ELY_M Offline
Member

Registered: 03/23/01
Posts: 133
Thanks to LK again.

I added the CP hack that an Admin can decide if he or she wants to allow unregistered users to upload.

I also added some new codes and did recoding for the new topic and reply and pm forms.


The zip is updated.

Top
#134023 - 05/08/01 06:51 PM Re: [6.0x] ELY_M's Upload Modification
SkipperII Offline
Member

Registered: 03/09/01
Posts: 46
ELY_M du you thing i have a chance to install it in a older Version of the UBB 6.x? I will test it but when you say no chance ..... that i don't install it!

Sorry for my English

SkipperII

Top
#134024 - 05/09/01 12:13 AM Re: [6.0x] ELY_M's Upload Modification
ELY_M Offline
Member

Registered: 03/23/01
Posts: 133
Skipper II: Please read the instructions carefully. I have placed some instructions for people who want to keep older ubb versions.

I think you should upgrade your board to ubb 604d. It has more better security fixes than previous versions.

<FONT COLOR="#000000" SIZE="1">[ May 09, 2001 12:14 AM: Message edited by: ELY_M ]</font>

Top
#134025 - 05/10/01 02:54 PM Re: [6.0x] ELY_M's Upload Modification
SkipperII Offline
Member

Registered: 03/09/01
Posts: 46
Hello,

thank you i had a older File of your Upload hack! The New File Descrition for older UBB is very good! But i have one Problem all works in CP but when i save the Miscellaneous Settings, the Forum dosen't work the error is:
Code:
code:


Any Idea?

SkipperII confused

<FONT COLOR="#000000" SIZE="1">[ May 10, 2001 02:55 PM: Message edited by: SkipperII ]</font>

Top
#134026 - 05/11/01 02:22 AM Re: [6.0x] ELY_M's Upload Modification
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
ELY: I think you should make that files have a random name, like a368dq46.jpg (8 random letters/numbers).

Reasons:
<OL TYPE=a>

[*]If somebody posts something and I post another one with the sane name, it will overwrite the old one, and if it sucks they will blame the first one.

[*]Files like .htpasswd can cause a security risk, so now it will be a456f34g.htpasswd, which I think it's okay.
</OL>

If you choose to do it, just make sure the file doesn't already exist, because there can be even 2 random things that are the same.


If you think it's too ugly/dumb for you, make directories by the member number, like /cgi-bin/00000001/file.ext, and guests have 00000000; but I think it's worse, because of the guests and some other reasons I forgot wink


LK.
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#134027 - 05/11/01 02:43 PM Re: [6.0x] ELY_M's Upload Modification
SkipperII Offline
Member

Registered: 03/09/01
Posts: 46
@ELY_M

all the entrys of your hack in the vars_misc.cgi (After the when i Save the Settings in CP) beginn with
Code:
code:
and end with
Code:
code:
dosen't work and give this Error:
Code:
code:


The chmod is ok!
The Perl is ok
The hack is corecked added (i hope)!

Can you help me?

SkipperII confused confused

<FONT COLOR="#000000" SIZE="1">[ May 11, 2001 02:44 PM: Message edited by: SkipperII ]</font>

Top
#134028 - 05/11/01 04:34 PM Re: [6.0x] ELY_M's Upload Modification
MarkMac Offline
Junior Member

Registered: 04/13/01
Posts: 12
Possible big security risk?

When I specify that I want only jpg files to be uploaded, then go to post a file, such as regedit.exe, it says in the window that such a filename is not acceptable to upload, however it still uploads it to the directory.. So it wouldn't take much figuring out to upload a file and then find the url to get to it...

Top
#134029 - 05/11/01 07:25 PM Re: [6.0x] ELY_M's Upload Modification
MarkMac Offline
Junior Member

Registered: 04/13/01
Posts: 12
Ok, I changed some of the script, and seems to be working now.... here is what i did:

In upload.cgi

Find:

Code:
code:


and move it directly under the lines:


Code:
code:


Then find:

Code:
code:


and replace it with:

Code:
code:



This should make the script check the file type first, before uploading it.

As well, it will also generate a random filename so that one file upload will not overwrite one that is already in the directory.

I am pretty new at CGI, so someone may want to take a look at it..

Top
#134030 - 05/11/01 07:36 PM Re: [6.0x] ELY_M's Upload Modification
ELY_M Offline
Member

Registered: 03/23/01
Posts: 133
Quote:
quote:



yeah, need to add some code so the file wont be uploaded.

<FONT COLOR="#000000" SIZE="1">[ May 11, 2001 07:47 PM: Message edited by: ELY_M ]</font>

Top
#134031 - 05/11/01 07:53 PM Re: [6.0x] ELY_M's Upload Modification
ELY_M Offline
Member

Registered: 03/23/01
Posts: 133
MarkMac: Thanks for helping out with the security and file name thing.

Sorry, It took some time for me to read everything in here.

Top
#134032 - 05/11/01 08:02 PM Re: [6.0x] ELY_M's Upload Modification
MarkMac Offline
Junior Member

Registered: 04/13/01
Posts: 12
The only thing that I can see is a problem with what I did is that if someone uploads a file like joe.blow.jpg, then it will reject the file, because it thinks the file extension is .blow...... someone may be able to correct this for us tho... As I said, I am pretty green at CGI.

Cheers

Top
#134033 - 05/12/01 03:52 AM Re: [6.0x] ELY_M's Upload Modification
SkipperII Offline
Member

Registered: 03/09/01
Posts: 46
@ELY_M

you have no idea to my problem with the vars_misc.cgi entrys?


SkipperII confused confused

Top
Page 3 of 9 < 1 2 3 4 5 6 7 8 9 >


Who's Online
1 Registered (Gizmo), 33 Guests and 6 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Blogs, love em or hate em?
by AllenAyres
10/07/08 02:05 PM
What do you use to edit the files
by Ian_W
10/05/08 03:33 PM
BeyondCompare v3.00
by Ian_W
10/05/08 03:32 PM
Glossy Black Theme with Image Reflection
by Gizmo
10/05/08 02:17 PM
ShareThis
by Gizmo
09/28/08 05:06 AM
[7.3] Viewing MySQL logfiles made easier
by AllenAyres
09/27/08 09:57 PM
Looking for a simple upload script
by Murphdog
09/26/08 08:45 PM
New Mods
[7.3] Viewing MySQL logfiles made easier
by blaaskaak
09/24/08 05:39 PM
[7.3.1] add search to showmembers page
by blaaskaak
09/07/08 04:50 AM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
pisa666, ghengis317, NitroX, Dogan, EliYah-
13345 Registered Users
Top Posters Last 30 Days
AllenAyres 11
blaaskaak 7
FREAK1 4
Ian_W 4
tackaberry 4
Gizmo 4
Mike L_dup1 4

 

 

 
fusionbb message board php hacks