vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vbHacker & vbHackMaker (https://vborg.vbsupport.ru/showthread.php?t=36378)

Smellycat 03-31-2002 08:19 PM

I tried converting one of your old posts into a install.hack.php

this was the guest unable to view threads/ edit showthread.php

but it did not seem to be able to edit the files, did i do this right?

it fails and will only edit one occurance of the variable

Any ideas?

or did i just do this all wrong?

I was testing it with a simple example, just to se how it worked.

Thanks

bitbender 04-01-2002 11:39 PM

Take it from just another mainframe OS guy, burned out on assembler code, and years of maintenance application to operating systems(not unlike application of hacks, either).

This is a GREAT step towards easy application/regression of code!!

Most errors I have is from blinky eyed application, late at night!! Or that oft time when I convinced myself "I know it'll work, it's an EASY one!", and didnt take a backup (ok, rare, but I have my lapses)!!

Not that I will EVER stop reading code, either!! Now, with hackmaker and VBhacker I can really be FREE !!! :lick:

You folks do MORE than good a job !

Jawelin 04-02-2002 08:36 AM

Quote:

Originally posted by Jawelin
[...] do you think it could be possible to put the vbhacker.php and all *.hack.php scripts in a stand-alone directory under the forum/admin/ ?
Also the backupped files could be put in forum/admin/vbhacks/backup, for instance.
This for clean reasons and this way a full hack history would be kept on the server...

Quote:

Originally posted by FireFly
You can see a text version of the hack right in the beginning, just select "Generate text file" in that radio button. :)
And I'll think about having everything in its own folder. :)

If I used a custom directory below the admin folder, do you think it should be enough simply to add a '../' just before any file path reference within vbhacker.php ? :eek:
Of course, that dir itself should be moded to 777, shouldn it ?

Thank you very much.

Bye

Mutt 04-02-2002 10:41 AM

I have a wish list for the next version. Not that it needs anything because it's already great, but if you were looking for new features anyway :)
  • put the .hack.php files in thier own dir (we'll leave them there instead of deleteing)
  • have the script save your new hack as a .hack.php file in that same dir
  • create a log of which hacks were installed and when
  • put an unistall link next to each item in the log. the uninstall would run the install script backwards removing each component.
  • add a comments field to the hack maker. this would be displayed to the user when they were installing the hack
  • maybe add a discussion thread url field
  • give the script an option to CHMOD 777 files before and CHMOD 644 after the hack install

I can't think of anything else. Definatly most important hack ever! Thanks again

The Keeper 04-02-2002 10:47 AM

vbHackmaker totally stuffed up my hack (put slashes all through it) causing errors. (see nuke hack thread)

cditty 04-02-2002 11:07 AM

How does this hack work with php3 extensions? All the references I see show php.

Chris

Admin 04-02-2002 11:11 AM

It doesn't, Chris.

cditty 04-02-2002 11:29 AM

bummer.

Chris

Admin 04-02-2002 11:31 AM

Do people still use PHP3? Wakey wakey. ;)

cditty 04-02-2002 11:33 AM

No wakey wakey. Sleepy, sleepy. :)

I do because that is what I started with and my forum is now listed with google. If I change it to php, I loose all my google hits.

Correct? Or is there some hocus pokcus I can do to fix that?

Chris

roscoluxxx 04-02-2002 10:51 PM

Have either of these been used on 2.2.5?

Vivi Ornitier 04-03-2002 01:28 AM

all I can say is this hack 0wnz!!

thanks Firefly

Zaphod 04-03-2002 03:24 AM

Could you add a notes section to your files where you could list the xtra php files if there are any? It could also be usefull for notes about versions etc.?

cditty 04-03-2002 11:01 AM

One suggestion....Instead of dropping all the hack files in the admin directory, I would prefer to have a "hack" directory and put them there. It would help keep the admin directory less cluttered.

Just a thought.

Chris

orozery 04-03-2002 11:43 AM

Nice hack FireFly :)

Altough installing hacks is not as hard as uninstalling hacks ;)

John 04-03-2002 03:08 PM

This would be brilliant - but it never works for me!! I always get errors:

Fatal error: Call to undefined function: wordwrap() in /home/eovie/public_html/forum/admin/vbhacker.php on line 449
(On the third page)

Warning: Variable passed to reset() is not an array or object in /home/eovie/public_html/forum/admin/vbhacker.php on line 278
(On the second page, a different hack)

I haven't managed to get any hack working properly with this. And yes, all directories were set to 777 (and files)

Help?!

Admin 04-03-2002 03:34 PM

You must have PHP 4.0.2 and higher to use this, since it's using wordwrap().

John 04-03-2002 04:53 PM

Uh oh, reply by email didn't seem to work :(

Apparently I'm running the latest version of php <confused>

Rose 04-03-2002 05:13 PM

How do you know which version of php you are using?



And a side note - by setting the file/folder permissions to 777, does this pose a threat to the integrity of security? I don't know a lot about it. :s


I got the vbhacker workign beautifully - love it! Thanks, Chen. however, I don't seem to have the 'multiple reply' hack workign (via vbhacker), though this isn't the place for that. :D Thanks again!

John 04-03-2002 05:14 PM

Well, my hosts tell me I'm running version 4.1.2, which by my maths suggests I pass the 4.0.2 minimum...I think. <scratches head>

Any ideas?

merk 04-05-2002 01:41 AM

Quote:

Originally posted by cditty
No wakey wakey. Sleepy, sleepy. :)

I do because that is what I started with and my forum is now listed with google. If I change it to php, I loose all my google hits.

Correct? Or is there some hocus pokcus I can do to fix that?

Chris

There is a method to get around this.

You could either use mod_rewrite, or make a custom 404 error template, that would redirect the user using the variables in each url..

I think the theory would be similar to an oldish hack released by overgrown(i think) - vBSpiderFriend , have a look for it :)

amykhar 04-05-2002 04:36 PM

Chen, can you make a dropdown for the hacks forum, similar to the one that shows the version that the hack is released for, that shows if the hack is vbhacker compatible?

That would be a BIG selling point for some hacks. I know I plan on using vbhacker for any hacks that I create or install in the future.

Amy

John 04-05-2002 04:51 PM

I was going to ask the same thing - it's a pain having to go through all of the hacks trying to figure out which ones are vBHacker compatible.

el3m3nt 04-05-2002 05:14 PM

problem with the vbhacker.php:

i created with vbhackmaker.php a xxxx.hack.php and now want to create a txt-file.
when i load the vbhacker.php, in the select-form.. there are no hack-names and hackwriter-nicks displayed. when i chose one.. and want to create a text file.. i got the following error:

Warning: Variable passed to reset() is not an array or object in /public_html/admin/vbhacker.php on line 278

hope somebody.. can help me, cause i would love to use this tool :).

NTLDR 04-05-2002 05:25 PM

Have you got the xxx.hack.php in the same directory as vbhacker.php and vbhackmaker.php? Which should be your forum/admin directory.

el3m3nt 04-05-2002 05:29 PM

jap.. i tried it also on my online server.. same result :/

NTLDR 04-05-2002 05:54 PM

The only other thing I can think of right now is did you copy and past exactly the text output that vbhackmaker.php gave to produce the xxx.hack.php file?

Also can you load another xxx.hack.php ok? I've attached one to this post which know works. (Its TWTCommish's who downloaded hack)

el3m3nt 04-05-2002 05:58 PM

hmm.. yep you are right.. the file u attached works. thank you.. then i know where the mistake is.

thanks :).

NTLDR 04-05-2002 06:07 PM

No problem, I think the problem with you trying to make vbIndex into a hack file, if thats what you were doing is that there are no files to edit.

Smoothie 04-05-2002 11:24 PM

Having a problem. I uploaded the vbhacker.php file to my admin folder. I also uploaded the hack i wanted to install. This hack here:
https://vborg.vbsupport.ru/showthrea...threadid=36891
But when I run the script, it gives me this error:
Warning: Variable passed to reset() is not an array or object in /home/macfora/public_html/forums/admin/vbhacker.php on line 555

Running ver 2.2.2

GameCrash 04-06-2002 07:07 AM

Hm... some weeks (or months?) before I offered to create such a tool... nobody wanted it...

Smoothie 04-06-2002 07:19 AM

Well, I don't need vbHacker, I just need the plaintext file it creates so I can install the hack.

timecode 04-06-2002 06:43 PM

Requests

Definitely have a vbhacks folder to keep the hacks tidy.

In vbhackmaker, how about having a selection list of current xxxx.hack.php files like you do in vbhacker's 'choose a hack you wish to install' to select from (for editing) ?

Problems

'Proceed With Creating Hack'... I have no 'file edits' for example, only template edits. It seems to insist on me saying that there is at least one file edit before I can go any further.

The first 'template edit' gets '\'characters (escape) added which make vbhacker unable to find the string in the original. It also adds them again, making them worse each time the file is edited and run through vbhackmaker
e.g.
<a href=\\\"calendar.php?s=$session[sessionhash]\\\"><img src=\\\"https://vborg.vbsupport.ru/images/top_calendar.gif\\\" alt=\\\"Calendar\\\" border=\\\"0\\\"></a>

Also, I'm trying to replace the following from the header template but it says it can't ever find it. It IS there though. Is it parsing 'newline' and other similar characters correctly? I've re-typed the whole text in vbhackmaker, cut and pasted it as well from the original header, but no luck.

<!-- logo and buttons -->
<center>
<table border="0" width="\{tablewidth\}" cellpadding="0" cellspacing="0">
<tr>


Apart from these problems it's great. The ones I do have working run smooth as silk :)

I have no other hacks installed. I'm running on a clean install of 2.2.5 (tried it on a clean 2.2.2 as well though) and wanted to get vbhacker running before I start to use it live.

Any ideas as to why I'm having these specific problems?

Admin 04-07-2002 11:11 AM

First problem of "must have a file edit" -- simple, a hack must consist of at least one file edit or it's not a hack (but a template modification).

The added slashes -- a problem with magic_quotes_gpc being on. I think I know how to fix this and I will as soon as I get some free time on my hands.

ja5es 04-07-2002 11:01 PM

Ahhhh... This is nice. Thanks a lot FireFly!

fastforward 04-08-2002 03:06 PM

Quote:

Originally posted by FireFly
First problem of "must have a file edit" -- simple, a hack must consist of at least one file edit or it's not a hack (but a template modification).

The added slashes -- a problem with magic_quotes_gpc being on. I think I know how to fix this and I will as soon as I get some free time on my hands.

Just FYI... I tried to package my hack using vbHackMaker and I also had the added slashes problem. The problem occurs with or without magic_quotes_gpc on. magic_quotes_runtime is set to off if that makes a difference.

andrew67 04-09-2002 02:51 PM

This ermm script/hack??? ROCKS!!!! It makes installing hacks a breeze... FireFly does it again, what a champion... Three cheers for FireFly :)

Hip Hip
Hooray
Hip Hip
Hooray
Hip Hip
Hooray
:D

Alfo 04-09-2002 04:08 PM

Quote:

Originally posted by Wolf42
I got to get access via AdminCP:

Add this code in admin/index.php
PHP Code:

// ***
makenavoption("Add Hack","vbhacker.php","<br>");
makenavoption("Make Hack","vbhackmaker.php");
makenavselect("FireFly's Hackinstaller","<hr>"); 

right after:
PHP Code:

if ($debug==1) {
    
makenavoption("Download Set","template.php?action=downloadset","<br>");
    
makenavoption("Upload Set","template.php?action=uploadset","<br>");
    
makenavoption("Do <img> Tags","template.php?action=imgtags");


What do you think?

Ups: Don't work! Just tryed on my boards.
But I don't know why. Any ideas?

Doesn't Fix what you have done but is a alternative:
In .admin/Index.php Look for:
Code:

<tr class="firstalt">
        <td>MySQL Language Lookup</td>
        <td><input type="text" name="search_query" size="30"> <span id="submitrow"><input type="submit" value="Find Now"></span></td>
</tr>
<tr class="secondalt">
        <td>Useful Links</td>
        <td><select onchange="jumpto(this.options[this.selectedIndex].value)">
                <option>&raquo; Useful Links &laquo;</option>
                <option value="http://www.vbulletin.org">vBulletin Org</option>
                <option value="http://www.vbulletin.com/">vBulletin Home Page</option>
                <option value="http://www.vbulletin.com/members/">vBulletin Members' Area</option>
                <option value="http://www.vbulletin.com/forum/">vBulletin Support Forums</option>
                <option value="http://www.vbulletin.com/manual/">vBulletin Online Manual</option>
                <option value="http://www.php.net/">PHP Home Page</option>
                <option value="http://www.php.net/manual/">PHP Online Manual</option>
                <option value="http://www.mysql.com/">MySQL Home Page</option>
                <option value="http://www.mysql.com/documentation/">MySQL Documentation</option>

        </select></td>
</tr>

And Just add :
Code:

                <option value="http://xxx.xxx.com/admin/vbhacker.php">VB HACKER</option>
                <option value="http://xxx.xxx.com/admin/vbhackermaker.php">VB HACKERMAKER</option>

It works.

Also Thanks to Firefly for a user friendly addition:)

GOD-Dblade 04-10-2002 09:03 PM

i cant get this hack to work with 2.2.5...there a reason for this? shows a error...

Warning: Variable passed to reset() is not an array or object in /home/virtual/site16/fst/var/www/html/forums/admin/vbhacker.php on line 278
Warning: The vBulletin version you are currently using (2.2.5) does not match the vBulletin version required by this hack ().

Kengan 04-10-2002 09:55 PM

Love it ! thanks ! :cool:


All times are GMT. The time now is 01:12 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01306 seconds
  • Memory Usage 1,836KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete