Pastebin

There are so many pastebins on the Internet these days. Why does the world need another one? I don’t know, but I wanted one for myself because of my friends and I when we were in Computer Science. Others found the pastebin so I then made password protected pastes. I like how the Pastebin is now. The only problems I have with it are that in FireFox when you copy and paste from it it also includes some weird numbers, so you have to copy and paste from the code box which isn’t that bad. Also I was trying to implement a printer friendly feature but I’m too sick of working on it so I gave up after I realized that with it people were able to circumvent password protection, I know there’s a way to fix that but I’m just too tired.

It was originally written by Paul Dixon, released under the GPL. Naturally, this is also under the GPL. I was planning on fixing up the code to make it look nicer because the original author made weird use of whitespace but screw it I’m too tired. You can see it in action here.

Features
- Password Protected Pastes
- reCAPTCHA anti-spam security
- Archive Page
- FamFamFam Icons
- Updated with the latest version of GeSHi from SVN. Support for many more languages.

Changelog
1.5
- Fixed bug where people could download password protected pastes
- Cleaned all URLs with mod_rewrite for SEO

Sites Using this Pastebin
- mscripts.net: A site dedicated to mIRC scripts

Download pastebin.tgz 1.5 - Last Updated: 6-29-08

72 Responses to “Pastebin”


Pages: 1 2 [3] - Show All
  1. yep it worked after that :)

  2. Blaenk Denum wrote:

    It was originally written by Paul Dixon, released under the GPL. Naturally, this is also under the GPL. I was planning on fixing up the code to make it look nicer because the original author made weird use of whitespace but screw it I’m too tired. You can see it in action here.

    Nice to know.

    Blaenk Denum wrote:

    He responded.

    You just have to change the ‘REGEXPS’ line in the mirc.php file to this:

    'REGEXPS' => array(
    0 => '\$[a-zA-Z0-9]+',
    1 => '(%|&)[a-zA-Z0-9]+',
    2 => '(#|@)[a-zA-Z0-9]+',
    3 => '-[a-z\d]+',
    4 => '(on|ctcp) (!|@|&)?(\d|\*):[a-zA-Z]+:',
    5 => 'raw (\d|\*):',
    6 => '/timer(?!s\b)[0-9a-zA-Z_]+',
    ),

    Nice thanks for the code.

    dark wrote:

    yep it worked after that :)

    Awesome! :D

    —–
    This was a test.

  3. Hello,

    Thanks for the script, I’m using it on a personal basis and it full fill all my need.

    However, it has a bug for the bash script after a variable surrounded by {} like in this example:

    http://paste.blaenkdenum.com/406

    it insert thos two character right after: |>

    In the original pastebin script, it’s OK:

    http://pastebin.com/m657b200e

    Hope there is a easy work around.

    Regards,

    Nicolas.

  4. I’ve updated it to geshi’s latest version (Geshi is the syntax highlighter). I don’t know if this fixes it but I doubt it because there didn’t seem to be a change in the bash file. Get version 1.3 above and if you still experience problems let me know and I will contact the geshi developers about it.

    Upgrading is simple, simply backup your config file in config/ and then overwrite everything in the top level directory with the new version’s files, then drop your config file back in.

  5. Hello,

    Thanks a lot for the support, now it works :-)

    Variable surrounded by {} are not highlighted any more but at least the code is correct, it’s all I need!

    Regards,

    Nicolas.

  6. Glad it worked and thanks for using my pastebin! Let me know if you need anything else.

  7. Vendor: http://www.blaenkdenum.com/pastebin/
    Discovered: 22 June 2008
    Reported: No
    Founder: Dr.Wh4x
    Dork: inurl:pastebin inurl:”index.php?dl=*”

    Intro:

    This pastebin mod is vulnerable to bypass the password protected paste’s you can insert in the system. To bypass this you can simply download the paste without any form of knowing the password.

    P.O.C:

    Protected paste: http://paste.blaenkdenum.com/257
    Download paste: http://paste.blaenkdenum.com/?dl=257

  8. Interesting but I’m not the one who wrote the previous message…

  9. Haha, wow, it’s so obvious I don’t know how I let that get through :P Thanks Nicolas for filling me in. I’ve fixed that bug and added some rewrite rules to make the pastebin look more user friendly. You should get version 1.5. Thanks again for letting me know, at least you did, unfortunate that ‘Dr. Wh4x’ didn’t.

  10. http://wizz.freetzi.com/pastebin1/pastebin.php

    Hmm, what am I doing wrong? :/

  11. Hey Jorge i was going through the script and i like it im a web security person hacker whatever you want to call it and i was looking through the code to check it etc for vulnerabilities and found another one. Just letting you know to patch

    Script: http://www.blaenkdenum.com/pastebin/
    Discovered: August 07 2008
    Reported: Yes
    Exploiter: UnDeTecT
    Dork: inurl:pastebin inurl:”pastebin.php?diff=*”

    This script is unsecure and open to bypass password protected paste. Find a password protected paste click to get to password prompt grab id # from url put into the $_GET['diff'] of pastebin.php and ACCESS GRANTED!…

    Proof of Concept:
    Protected paste: http://paste.blaenkdenum.com/257
    Unprotected paste: http://paste.blaenkdenum.com/di/257
    or
    Unprotected paste: http://paste.blaenkdenum.com/pastebin.php?diff=257

  12. @UnDeTecT: Thanks a lot for the information, I really appreciate it! I guess this uses the same method that the dl method used haha, stupid me. Thanks again :)

    @wizz: Can you please paste your conf file somewhere? Of course, delete any sensitive information from it.

  13. no problem man i liked the script

  14. You stilled need to patch it to check becuase you can still bypass it if someone repost the changed post with no password.

  15. Sorry what? I think the Diff feature of this script is pointless anyways so I’m going to remove it, as it’s causing a few problems already, also it doesn’t even work that well. By the way, I’m using the pastebin.com script, it’s open source, I’ve simply modified it a lot or something.

    Thanks for the help though! :)

  16. yea i know no problem just give credit for the patch if you use it.. i patched it up on mine and got the diff working correctly

  17. Oh you did? Would you mind sending over the source or a patch? I would appreciate it. And of course I give credit where credit’s due ;)

  18. Hi,
    I’ve been trying to install this script on my site too. Evrything goes fine , but when i click send button it gives me an error:

    “Warning: Cannot modify header information - headers already sent by (output started at /home1/rigadiga/public_html/irckid/pb/pastebin.php:4) in /home1/rigadiga/public_html/irckid/pb/pastebin/pastebin.class.php on line 212″

    Can u help me please?

  19. Ok , This Worked Now, I Started From The Scratch Again, But I’m having Problem When i Try to Download Some Pasted Data. It takes me to a Wrong link i.e. http://www.mysite.com/download and when i click new post on the same page it takes me to ” http://www.mysite.com/paste” Can U Help me FiX These Links?

  20. It’s because the redirects are written in the .htaccess file which is for Apache web server, and it seems to me like you are using IIS correct? You would have to figure out how to translate them, I’m sorry :(

  21. Installed ok: http://pastebin.andyh.org.uk/

    Thanks

  22. Good to hear :) You’re welcome.

Pages: 1 2 [3] - Show All

Leave a Reply