Jump to content

Uranium-235

Members
  • Posts

    21
  • Joined

  • Last visited

Contact Methods

  • Website URL
    http://uranium.paintbug.com
  • ICQ
    82510498

Profile Information

  • Gender
    Not Telling

Uranium-235's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I don't mind using PHP to generate this instead of VB, but every key I try to generate, it dosen't connect, nor give me an error. UVNC must have its own slightly modified version of RC4 files. Anybody have ANY idea how to go about this?
  2. so i'm using vb.net and PHP for a new helpdesk software i'm making for myself it uses UltraVNC and I want each account to have a key. My luck with making a key in VB.net has gotten nowhere. I've been messing around with pack() and have gotten somewhere but am still having problems. attached is a key file. Its 128-bit RC4, each key begins with "128 bitL". I've searched through Uvc's forum with no luck as how to go about this. Help pls rc4.zip
  3. I think one thing I can also do is $str = str_replace('=', '==', $str); $str = str_replace('<==', '<=', $str); $str = str_replace('>==', '>=', $str); but i'm not sure how it would compare cpu intensity wise
  4. I'm not 100% sure on what you're meaning, but you want might to make those session variables arrays if those are the ones you want to 'loop' through.
  5. I probably overdid all of it but hey it works. like this is what i'm taking in: S=8x16,S=8x10&V=10-50 and ending up with "5x11"=="8x16" || "5x11"=="8x10" && 6.3 >= 10 && 6.3 <= 50 which I will later eval() heres the code. i'm so worried about something going wrong I don't take any shortcuts, i'm sure I didn't have to use a decimil for each number i'm sure there is a flag for any number but not sure it applies to double type numbers $replace_arr = array('D' => $dia, 'L' => $len, 'V' => $volt, 'C' => $cap, 'R' => $ripple, 'E' => $esr, 'S' => $dia . 'x' . $len); foreach($replace_arr AS $replace => $replace_with) { $str = str_replace($replace, $replace_with, $str); } $str = str_replace('&', ' && ', $str); $str = preg_replace('/([0-9]{0,8}[\.]?[0-9]{0,8})[=]{1}([0-9]{0,8}[\.]?[0-9]{0,8})[-]{1}([0-9]{0,8}[\.]?[0-9]{0,8})/m', '$1 >= $2 && $1 <= $3', $str); $str = preg_replace('/(?<!<|>)=/m', '==', $str); $str = preg_replace('/([0-9]{0,8}[\.]?[0-9]{0,8})x([0-9]{0,8}[\.]?[0-9]{0,8})/m', "\"$1x$2\"", strtolower($str)); $str = str_replace(',', ' || ', $str); print($str . "<br/>\n");
  6. thank you! it worked. Still confused by look aheads and behinds. preg is so much more complex than postix ereg
  7. hey guys, long, long long long time no see. anyways, I stopped using ereg and am getting pretty good @ preg, but am running into a problem with one statement. what i'm trying to do is change a parsed text statement into a conditional statement, and am getting it done pretty well but one thing is not working take this string (this string has had variables replaced in to get to where it is now by earlier code, i'm going to eval() it) 5x11=8x11.5&6.3=6.3 but since I want to eval it, I need to turn the = into == other possible conditionals in these strings include < > <= >= of course if I did a simple str_replace, it would turn all other <= into <== which is a nono to be evaled so I do this $str = preg_replace('/[^\<\>][\=]{1}/m', '==', '5x11=8x11.5&6.3=6.3'); to try to say, match the =, but don't match any < or > in front of it and replace it with a == but it cuts the last numbers off of the successful == statement turning 5x11=8x11.5&6.3=6.3 into 5x1==8x11.5&6.==6.3 I essentially want the match to fail if there is a < or > front of the = sign, but its matching and taking the last number off if it does match any help?
  8. thank you. can you please explain why I got that error. earlier (before i posted here) I even took out the $ completly just cause I was getting pissed, and it still said "Unexpected $". How could it be unexpected, there was no $ at all. edit: ahhh, it was the semicolon. I had no idea I would have to put one in there on a bool compairason. I don't for my other ones (of course for those, I was passing them alone as an argument), but appearently you have to for eval with a return statement. Thank you
  9. This has been bugging me. I'm testing if a list of varibles (from a seperate list)I get from extract() from MySQL query is equal to "Y". Do a boolean compairason for each one (this is from a much larger thing). I'm calling this inside a function call I keep getting "Parse error: parse error, unexpected $ in /home/thescriptwholedirectoryremoved.php(781) : eval()'d code on line 1" here is the statement I use: eval("return (\$" . $key . " == \"Y\")") when I actually print the evaluated statement in PHP, it prints out as: return ($carreq == "Y") which is correct, but, eval gives me an error. please help
  10. I'm using ereg but I Think I fixed it ^[A-Za-z0-9@._-]+$ seems to work so far
  11. I created this expression, for validating characters for an input field (0-9,a-z,A-Z,'-','_', '@', '.') ^[A-Za-z0-9\.\-_@]+$ It works, except when I test it with an input that contains all correct characters, and a backslash (which is invalid). when I test this in regex coach with the same string, it works correctly, but when I test it in PHP, it dosen't. It sees "foobar\" as valid, and it's not. When I use other invalid characters, it catches them.
  12. I first learned C in high school. It taugh be some of the basics behind the loops (though theres a few other kinds of loops in PHP that make things easier) I hated C's strictness, and difficulty with strings. I learned how to script for the PC game 'tribes', and someone told me how similar it was to PHP (which I never really heard before) I got a book and learned, a bit. I at first found myself constently going to the book for help, but that slowed down and eventually stopped. Then I started going to PHP's main site to look up functions, structures, and hints from vets who leave all kinds of little ways of showing you how to do things. Over time, it just becomes second nature, you memorize the differnt functions, they're usage, and how to solve problems using them. As you go on, your code becomes more efficient, and more secure. You can also look over other peoples code who distributes it, and how they do things, that can help you figure how easier ways of processing database data, forms, external web data, etc. heres some tips from me to you: be weary of using globals: [a href=\"http://us3.php.net/manual/en/security.globals.php\" target=\"_blank\"]http://us3.php.net/manual/en/security.globals.php[/a] for forms that submit with a post operation, get the data form $_POST['name'] or $HTTP_POST_VARS['name'] when you're creating a web interface for manipulating database information. When you setup the database, be sure to set up an auto-incrimented ID based system, and pass that ID into your scripts, instead some other field. In this case, I find it a good idea to use the is_numeric function to check the ID before you put it into a query, prevents possible sql exploits
  13. MySQL still should work as-is. I got the same message last night when putting it on my poor P1-100 laptop (don\'t laugh, please). And it still worked just fine. However, if you want it, you can get it here: http://www.mysql.com/downloads/api-myodbc-2.50.html
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.