首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏大数据-Hadoop、Spark

    ZooKeeper stat is not in whitelist

    问题: 安装好ZooKeeper3.5.5后,执行telnet 127.0.0.1 2181,报错: stat is not in whitelist 解决方法: cd ~/apps/zookeeper -3.5.5/bin 添加如下参数: # 添加者:zhangx'x@xx.cn 20190726 begin ZOOMAIN="-Dzookeeper.4lw.commands.whitelist=*

    1.3K20发布于 2019-07-28
  • 来自专栏Java成神之路

    Java微信开发_Exception_02_errcode:40164,errmsg:invalid ip 61.172.68.219, not in whitelist hint

    access_token,晚上回家之后获取access_token时却报出下列错误信息: {"errcode":40164,"errmsg":"invalid ip 61.172.68.219, not in whitelist

    1.5K40发布于 2018-08-10
  • 来自专栏python3

    Python调用Linux c库:cty

    _ *childs; //子节点数组 } whitelist_tree_node; typedef struct _whitelist_tree_ { whitelist_tree_node *root; //根节点 unsigned int whitelist_count; //URL白名单个数 } whitelist_tree, *PUrlWhiteListControl #define tree node class whitelist_tree_node(Structure): pass whitelist_tree_node. )) ] #define tree class whitelist_tree(Structure): pass whitelist_tree. #define query url whitelist control PUrlWhiteListControl = POINTER(whitelist_tree) #load library url_whitelist_lib

    1.8K10发布于 2020-01-09
  • 来自专栏码匠的流水账

    聊聊eureka server的RemoteRegionRegistry

    In case, there is no whitelist * defined for a region, this method will also look for a global whitelist and this app is not in the whitelist whiteList = serverConfig.getRemoteRegionAppWhitelist(null); // see global whitelist. } return null == whiteList || whiteList.contains(appName); } 这里判断,如果对应region的AppWhitelist为null,则以全局的白名单为准 ,如果最后whiteList为null或者whiteList包含该app,则返回true,表示需要从远程获取 AbstractInstanceRegistry.initRemoteRegionRegistry

    1.2K10发布于 2018-09-17
  • 来自专栏YX’blog

    复现HCTF2018 WarmUp(文件包含)

    然后我们发现$whitelist数组中有两个值为source.php和hint.php。 )) { //这里判断如果page存于whitelist,就返回true return true; 这里我们认识一下mb_strpos()函数以及mb_substr //若$page中有俩个问号,截取其中间段 ); if (in_array($_page, $whitelist)) {//这里是取'?' ); if (in_array($_page, $whitelist)) { //判断经url解码且截取片段的$page是否存于whitelist 前部分需存于whitelist数组中 进行一次url解密,并继续判断page是否存在于whitelist中 最后check函数再url解密一次所以说,我们这里可以直接构造出payload(这里由于我们不知道

    64710编辑于 2023-04-07
  • 来自专栏历史专栏

    【愚公系列】2021年12月 攻防世界-进阶题-WEB-006(warmup)

    FILE__); class emmm { public static function checkFile(&$page) { $whitelist ); if (in_array($_page, $whitelist)) { return true; } = ["source"=>"source.php","hint"=>"hint.php"];//声明$whitelist(白名单)数组 if (! )) {//若$page变量存在于$whitelist数组中 return true;//返回true } $_page = mb_substr ); if (in_array($_page, $whitelist)) { return true; } $_page =

    75320编辑于 2021-12-27
  • 来自专栏新亮笔记

    Go - 如何编写 ProtoBuf 插件(二)?

    = 2; // ip whitelist optional bool logger = 3; // logger } message ServiceHandler { optional string authorization = 1; // login token optional string whitelist = 2; // ip whitelist : "ip_whitelist", logger: true, }; } rpc SayHello2 (HelloRequest) returns (HelloReply = nil && *methodHandler.Whitelist ! = "" { fmt.Println("use interceptor whitelist: " + *methodHandler.Whitelist) } if methodHandler.Logger

    81810编辑于 2021-12-20
  • 来自专栏Mirror的技术成长

    CVE-2018-12613-phpmyadmin4.8.1远程文件包含漏洞复现

    public static function checkPageValidity(&$page, array $whitelist = []) { if (empty($whitelist )) { // 白名单 //$whitelist在函数被调用的时候,没有值引用$goto_whitelist的内容(上图) $whitelist = self::$goto_whitelist; } if (! )) { // in_array():搜索数组中是否存在指定的值 //$page存在$whitelist中的value返回true return true //返回从开始到问号之间的字符串 ); if (in_array($_page, $whitelist)) { //$_page存在$whitelist

    1.6K30发布于 2020-11-12
  • 来自专栏陶士涵的菜地

    [PHP] 频率限制类

    php class Sina_Mail_WebAntispam { const PREFIX_WHITELIST = 'w:'; const PREFIX_KILL = 'k:'; const STATUS_UPDATE = '[U]'; private $mc = null; private $config = null; private $whitelist setWhitelist(&$whitelist) { $this->whitelist = & $whitelist; } /*验证限制规则*/ public empty($this->whitelist)) { if ($ip && $this->filterByWhitelist($ip, 'ip')) { $this->status[self::PREFIX_WHITELIST .

    1K30发布于 2019-09-10
  • 来自专栏非著名运维

    1分钟配置Kubectl命令自动补全功能

    = --lockdown-on --add-lockdown-whitelist-context= --panic-off --add-lockdown-whitelist-uid= --panic-on --add-lockdown-whitelist-user= --permanent --add-masquerade -- --query-lockdown-whitelist-uid= --change-source= --query-lockdown-whitelist-user --remove-lockdown-whitelist-uid= --info-icmptype= --remove-lockdown-whitelist-user --set-description= --list-lockdown-whitelist-contexts --set-log-denied= --list-lockdown-whitelist-uids

    6.6K20编辑于 2022-06-22
  • 来自专栏终码一生

    Spring Boot 项目鉴权的 4 种方式

    )") public void checkAppkeyWhitelist(JoinPoint joinPoint, Whitelist whitelist) { checkWhitelist ("@annotation(com.zhenbianshu.Whitelist)") public void whitelistPointCut() { } } 在Controller方法上添加 @Whitelist 注解实现功能。 whitelist = ((HandlerMethod) handler).getMethodAnnotation(Whitelist.class); // whitelist.values whitelist = parameter.getMethodAnnotation(Whitelist.class); // 通过 webRequest 和 whitelist 校验白名单

    1K20编辑于 2022-04-15
  • 来自专栏LuckySec网络安全

    phpMyAdmin 4.8.1 远程文件包含漏洞复现

    phpMyAdmin/libraries/classes/core.php public static function checkPageValidity(&$page, array $whitelist = []) { if (empty($whitelist)) { $whitelist = self::$goto_whitelist; ); if (in_array($_page, $whitelist)) { return true; } $_page = urldecode ); if (in_array($_page, $whitelist)) { return true; } return false ); if (in_array($_page, $whitelist)) { return true; }

    2.6K61编辑于 2022-11-02
  • Spring Boot 实现通用 Auth 认证的 4 种方式

    )") public void checkAppkeyWhitelist(JoinPoint joinPoint, Whitelist whitelist) { checkWhitelist() ; // 可使用 joinPoint.getArgs() 获取Controller方法的参数 // 可以使用 whitelist 变量获取注解参数 } @Pointcut(" @annotation(com.zhenbianshu.Whitelist)") public void whitelistPointCut() { }}在Controller方法上添加 @Whitelist whitelist = ((HandlerMethod) handler).getMethodAnnotation(Whitelist.class); // whitelist.values whitelist = parameter.getMethodAnnotation(Whitelist.class); // 通过 webRequest 和 whitelist 校验白名单

    35510编辑于 2025-02-28
  • 来自专栏从零开始学自动化测试

    Cypress web自动化21-如何在多个tests之间共享cookies

    种实现方式 1.Cypress.Cookies.preserveOnce(‘key name1’, ‘key name2’) 保留cookies 2.Cypress.Cookies.defaults({whitelist whitelist 可以接收的参数: String 字符串 Array 数组 RegExp 正则 Function 函数 Whitelist String // now any cookie : 'session_id' }) Whitelist Array // now any cookie with the name 'session_id' or 'remember_token' // '] }) Whitelist RegExp // now any cookie that matches this RegExp // will not be cleared before each test runs Cypress.Cookies.defaults({ whitelist: /session|remember/ }) Whitelist Function Cypress.Cookies.defaults

    2.2K20发布于 2020-05-29
  • 来自专栏SpringBoot

    Jsoup过滤html标签并不删除换行符

    Document doc = Jsoup.parse(html); String text = doc.text(); 或者 String text = Jsoup.clean(html,Whitelist.none ()); 解决办法: 使用jsoup.clean的另一种方法重载: public static String clean(String bodyHtml, String baseUri, Whitelist whitelist, Document.OutputSettings outputSettings) bodyHtml —不安全的html片段 baseUri —将html中相对路径转换为绝对路径的URL whitelist —白名单允许的html标签和属性 outputsettings —文档输出设置,控制精细打印 具体使用时: String text =Jsoup.clean(html, "", Whitelist.none

    4.5K30发布于 2020-06-21
  • 来自专栏全栈程序员必看

    Apache knox_apache发生服务特定错误1

    需要修改一下gateway.dispatch.whitelist.services属性,内容里删掉YARNUI,如果不删除,则会报错: 修改完重新调用 ERROR knox.gateway Please consider explicitly configuring the whitelist via the gateway.dispatch.whitelist property in gateway-site Please consider explicitly configuring the whitelist via the gateway.dispatch.whitelist property in gateway-site roles specified by gateway.dispatch.whitelist.services. If the value is DEFAULT, a domain-based whitelist will be derived from the Knox host.

    1.7K20编辑于 2022-11-01
  • 来自专栏码匠的流水账

    聊聊dubbo-go-proxy的authorityFilter

    authorityFilterFunc() context.FilterFunc { return New().Do() } // authorityFilter is a filter for blacklist/whitelist . type authorityFilter struct { } // New create blacklist/whitelist filter. func New() filter.Filter 执行的是authorityFilter.Do方法 Do dubbo-go-proxy/pkg/filter/authority/authority.go // Do execute blacklist/whitelist } } if (rule.Strategy == model.Blacklist && result == true) || (rule.Strategy == model.Whitelist 判断clientIP是否命中 小结 dubbo-go-proxy的authorityFilter遍历AuthorityConfig的Rules,挨个根据Blacklist或者Whitelist判断clientIP

    31700发布于 2021-02-04
  • 来自专栏Java编程指南

    Spring Boot 项目鉴权的 4 种方式

    )") public void checkAppkeyWhitelist(JoinPoint joinPoint, Whitelist whitelist) { checkWhitelist ("@annotation(com.zhenbianshu.Whitelist)") public void whitelistPointCut() { } } 在Controller方法上添加 @Whitelist 注解实现功能。 whitelist = ((HandlerMethod) handler).getMethodAnnotation(Whitelist.class); // whitelist.values whitelist = parameter.getMethodAnnotation(Whitelist.class); // 通过 webRequest 和 whitelist 校验白名单

    98620编辑于 2022-11-11
  • 来自专栏程序猿DD

    在Spring Boot中实现通用Auth认证的几种方式

    )") public void checkAppkeyWhitelist(JoinPoint joinPoint, Whitelist whitelist) { checkWhitelist ("@annotation(com.zhenbianshu.Whitelist)") public void whitelistPointCut() { } } 在Controller方法上添加 @Whitelist 注解实现功能。 whitelist = ((HandlerMethod) handler).getMethodAnnotation(Whitelist.class); // whitelist.values whitelist = parameter.getMethodAnnotation(Whitelist.class); // 通过 webRequest 和 whitelist 校验白名单

    94110发布于 2021-07-13
  • 来自专栏四月天的专栏

    Ubuntu ufw/firewall 防火墙规则设置

    =<command> Add the command to the whitelist [P] --remove-lockdown-whitelist-command List all contexts that are on the whitelist [P] --add-lockdown-whitelist-context List all user ids that are on the whitelist [P] --add-lockdown-whitelist-uid =<uid> Add the user id uid to the whitelist [P] --remove-lockdown-whitelist-uid List all user names that are on the whitelist [P] --add-lockdown-whitelist-user

    4.7K30编辑于 2023-03-10
领券