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
1.0.0.0/24 | |
1.1.1.0/24 | |
1.2.3.0/24 | |
8.6.48.0/21 | |
8.8.8.0/24 | |
8.35.192.0/21 | |
8.35.200.0/21 | |
8.34.216.0/21 | |
8.34.208.0/21 | |
23.236.48.0/20 |
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 | |
function string2ByteArray($string) { | |
return unpack('C*', $string); | |
} | |
function byteArray2String($byteArray) { | |
$chars = array_map("chr", $byteArray); | |
return join($chars); | |
} |
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 | |
/** | |
* Automatically migrates Font Awesome 4 class names to Font Awesome 5 class names. | |
* | |
* WARNING: THIS WILL REWRITE YOUR FILES. | |
* BACK UP YOUR FILES BEFORE RUNNING THIS SCRIPT. | |
* YOU HAVE BEEN WARNED. | |
* | |
* Note: the migration CSV file was parsed from the official migration documentation: |
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
cat /usr/local/apache/conf/modsec2.user.conf | grep xmlrpc | |
#xmlrpc | |
=================== | |
SecRule REQUEST_LINE "POST .*xmlrpc.*" "pass,initcol:ip=%{REMOTE_ADDR},setvar:ip.maxlimit=+1,deprecatevar:ip.maxlimit=1/600,nolog,id:35061" | |
SecRule IP:MAXLIMIT "@gt 5" "log,deny,id:350611,msg:'wp-xmlrpc: denying %{REMOTE_ADDR} (%{ip.maxlimit} connection attempts)'" | |
#wp-bruteforce | |
=================== | |
SecRule REQUEST_LINE "POST .*wp-login.*" "pass,initcol:ip=%{REMOTE_ADDR},setvar:ip.maxlimit=+1,deprecatevar:ip.maxlimit=1/600,nolog,id:35011" | |
SecRule IP:MAXLIMIT "@gt 10" "log,deny,id:350111,msg:'wp-bruteforce: denying %{REMOTE_ADDR} (%{ip.maxlimit} connection attempts)'" |
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
#/bin/bash | |
# | |
# Performs reverse and forward DNS lookups to list Googlebot's IPs, given a list | |
# of IP addresses as a file. Useful for filtering access logs to find out actual | |
# Googlebot visits. | |
# | |
# An implementation of https://support.google.com/webmasters/answer/80553?hl=en | |
while IFS='' read -r IP_ADDRESS || [[ -n "$IP_ADDRESS" ]]; | |
do |
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
class _HomePageState extends State<HomePage> { | |
final GlobalKey<ScaffoldState> _scaffoldKey = new GlobalKey<ScaffoldState>(); | |
@override | |
Widget build(BuildContext context) { | |
return new Scaffold( | |
key: _scaffoldKey, | |
appBar: new AppBar( | |
title: new Text("App"), | |
leading: new IconButton( |
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 | |
/** | |
*============================ | |
* author:Farmer | |
* time:2017/12/19 | |
* blog:blog.icodef.com | |
* function:加密方式 | |
*============================ | |
*/ |
NewerOlder