This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $output = " | |
| Starting Nmap 6.00 ( http://nmap.org ) at 2015-07-22 01:21 CEST | |
| Nmap scan report for 2.104.0.67 | |
| Host is up (0.033s latency). | |
| Not shown: 2 filtered ports | |
| PORT STATE SERVICE | |
| 80/tcp open http | |
| Nmap scan report for 2.104.1.55 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ctime = microtime(true); // create timer | |
| /* created file here */ | |
| $ctime = returntimer($cstart); | |
| $dlstart = microtime(true); | |
| header('Content-type: application/zip'); | |
| header('Content-Length: ' . filesize($filename) ); | |
| header('Content-Disposition: attachment; filename="'.$downloadname.'"'); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ///////// crontab -e | |
| * * * * * cd ~; php updateipbans.php; /bin/newfw | |
| //////// structure.sql | |
| -- | |
| -- Table structure for table `ipbans` | |
| -- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public function priv_banip($line, $args) | |
| { | |
| $exectimer = xtimer(); // started timer | |
| $channel = $line['to']; | |
| $text = explode(" ", $line["text"]); | |
| $nick = $line['fromNick']; | |
| $ip = $text[1]; | |
| $reason = $text[2]; | |
| if (strpos($channel, "#") === false) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| file serve_mod modules/serve/serve_mod.php | |
| privmsg serve_mod priv_serve |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public function priv_uptime($line, $args) | |
| { | |
| $nick = $line['fromNick']; | |
| $channel = $line["to"]; | |
| // failsafes ... | |
| if (strpos($channel, "#") === false) | |
| return; | |
| if ($this->ircClass->getStatusRaw() != STATUS_CONNECTED_REGISTERED) | |
| return; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <? | |
| /* | |
| simple php cli script for checking kimsufi serv... | |
| */ | |
| ini_set("display_errors", true); | |
| date_default_timezone_set('GMT+8'); | |
| $reqtime = 10; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Script for producing fast loading pie graph over network hashrate distribution using google api´s graph drawing | |
| REQUIRES: working mmcfe | |
| INSTALL: | |
| 1. Create mysql tables using table.and.data.sql | |
| 2. Place header content in header and place page.content.php where you want graph placed | |
| 3. save the cron script amongst the other and add it to pool_update.sh or run it seperately to avoid it wrecking anything due to long timeouts | |
| UPDATEs: |