Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -----BEGIN PGP SIGNED MESSAGE-----
- Hash: RIPEMD160
- Greetings my children,
- It is time to take a magickal adventure into th3j35t3r's code called "Fox One". Trust me, this shit is as magickal as crack.
- To address this is a Linux Only claim J really needs to get out more as PHP is a platform independant language that runs on just about anything. The only dependancy I see is him executing festival from the commannd line to talk but event hat won't interfear with it's operation on another platform like windows. Windows console supports ANSI Escape Sequences and has been since Windows was created and before that... *shocked look* MS-DOS! The MySQL wrapper is is not platform dependant either and if you do some quick interchanges with SQLite3 it will run on anything with PHP w/no SQL server required.
- Executing this line "filteroption = $argv[2];" will raise an error since the script expects a 2nd argument to be there while he claims it's optional? I do not think J is aware of the isset() function to avoid such invalid index array errors.
- I see no reason why he needs to use get_current_user() (which works in Windows btw too!) to specify a hard path like that. Dumping it in the current directory works wonders or even using "~/Desktop/" to be Linux Specific. Hard Coded Directories are never good practice due to you assume too much about the running system. This should be an option at the very top.
- I do rather enjoy for a "Linux" only took he uses "\r\n" as a return on a seperate line which is used on Windows systems not Unix based ones. It doesn't appear he knows how to do this "This is some text\n". He does however use the string cat operator . spuratically apparently aware partially of this but fails again in that the cat operator is useful for variables not cating static strings together!?!?!
- This line here "if ($database_srvr == "put-your-dbase-srvr-here"){" will error and execute even if no DB is specified, again J is not aware of the isset() function as a proper method of handling such issues. If anyone runs it for the first time that variable doesn't even exist so it does not catch. A proper method is to leave the options commented out like above as you did but use isset() to check if the option was set or not.
- It appears J is not familiar with using else statements in code as well (lol):
- ~ WTF IS THIS ~
- if ($filteroption == "nofilter"){
- echo "Anti False-Positive Filter is DISABLED!\r\n";
- }
- if ($filteroption != "nofilter"){
- echo "Anti False-Positive Filter is ENABLED!\r\n";
- }
- ~ WTF IS THIS ~
- This should be "if($filteroption != "nofilter) { } else { }" but basic programing concepts, even PHP specific ones, appear to elude the master anti-jihadist (even though later he uses if/else statements).
- This code here was obviously copy/pasted and shows no knowledge of PHP.
- ~ Copy Paste Special ~
- $content = SimMyExtract( $content, '<h3 class="r">', '</h3>' );
- $content = str_replace("<a href=\"", "", $content);
- $content = cutbetweeninclusive($content, "\" class=l>", "</a>");
- ~ Copy Paste Special ~
- Now, ' and " do different things in PHP for strings and is shown by his above abvious copy/pasta as no one writting this would use two different methods like that if they wrote it. Using ' treats a string literally oppose to " which requires escapes and you can use variables. As you can see here he uses ' for the first part but decides to use " for the last parts with escaped " sequences? Da Fuck? LULZ!
- There is also other obvious signs the code is copy/paste like spacing and not spacing the bracket before the if() statement which doesn't happen on normal coding as they stick to the same style with other format spacing pecularities.
- Then there is all the code that he decides to set variables to only be used once in a call to strpos which is horrible programing practice. This is important in PHP as the variable is always set and is global in that context (not a member of a function), if this was some kind of loop doing such things it would crap itself on large load. J might want to read this http://php.net/manual/en/language.variables.scope.php .
- Last but not least J doesn't know what the fuck the TAB key is apparently.
- There is more bad programing practicies and errors in it but I think this is enough to get the ball rolling. Coding this in perl won't help you and I doubt you know perl considering this fuckery, also http://php.net/manual/en/function.curl-multi-exec.php fixes that threading problem.
- Also to add, the SQL DB has "\r\n" when it's used for string matching, this will break applications pretty well depending on the HTTP Server it's used on for this application.
- So, we can conclude if J "wrote" this he copy/pasted crap together with a primative knowledge of programing that doesn't even reach a basic level did the rest while smoking crack.
- William Welna
- (@Sanguinarious)
- -----BEGIN PGP SIGNATURE-----
- Version: GnuPG v2.0.17 (MingW32)
- iQIcBAEBAwAGBQJQhwLmAAoJEA+T4ieeOTwmDJcP/1t/pPM3L1Fp4Aj+kAzzKeNR
- OFDVkR3T5oUUtyi/OCeuC2E4Om8OAB0dqnXcw1i3d/nQMqXg98J7p+Jtkv5+GokX
- St4QzBifgt0OjyYQQiYZIv4T/zPo7YyCMgsWbd7b21bTXwJDNtZUMlDIN4I06p5P
- y11DNJc907wUclnNTn1Dm+2Y3FhvxCdL/6d/jkO0VlA79t8VeUyvfPY99rw5O8Qm
- YRE0Na8H81hz39Wsr6bJUiwUdb/jMUsEmpWmfSqvRFiJxS9nJJMAyQwRdmC6p19v
- TLh/J3zD1Pv/CihFfr4PUFITegvTo2HrLwAn1xyhNyWvqXAzTX2D3nekGETCX9Xr
- Wt7m1Ff7rC0PcuSYTZB9siY4i7vWan6BEUWkTUZiQBFqcp4AIeBjCxnCX3eFoKAG
- WBdho47ttRejUC7Mbfx8NpiWwLYaMFO6wbUL96mxAPzUIoC4Le6r9iStyMglE6aQ
- J16Mwi8OGhHfcj2OKnXG3Pcplc4bqYnZLZj1GehwRgSNh7G6XeminDHBUPOT9XdP
- zAsVSkqpR+4uDQOdsX9yV3A+07G6bOIGbaZWQh8/nfwno+Wy/BU4bh+xQinF63r9
- m1E6MGXt5HXNkHlIyijSZjQkpu3yiKem4l9zsy84RbqUPncHqUtjiNfgce+rv8FU
- +oZ3yVgI6qvSUr3XcED7
- =23Ga
- -----END PGP SIGNATURE-----
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement