waf

基于HTTP协议的WAF绕过

自作多情 提交于 2019-12-17 09:29:53
一,畸形包绕过 1.先关闭burpsuite长度更新,为get请求,先使用bp的method转换为POST请求 2.get请求中空格使用%20代替,Connection改为keep-alive 二,分块传输绕过waf 1.先在数据包中添加Transfer-Encoding: chunked 2.数字代表下一列字符所占位数,结尾需要两个回车 三,协议覆盖waf绕过 1.首先将数据包转换为文件上传包格式,使用bp工具change body encoding 2.删除多余空格 3.添加参数filename,filename =1.jpg,等于号前需要加个空格 4.加单引号绕过 5.边界混淆绕过 四,常见的waf绕过技巧,空格转义,超长字符溢出绕过等 五,组合绕过waf 1.分块抓输加文件包协议覆盖 2.Content-type编码绕过 3.http头格式绕过 回车加空格 混乱特殊字符绕过 只能位于chunked字符之前加入字符 加入双;号 来源: https://www.cnblogs.com/SCHAOGES/p/11962067.html

waf cannot find an existing library

守給你的承諾、 提交于 2019-12-13 14:34:29
问题 I'm trying to program a C++ module for node.js. Node is using waf as builder. I want to check on configure, if the library "sigar" exists. What I'm trying to do so: def configure(conf): conf.check_cxx(lib='sigar') When I run "node-waf configure", I get the following message: Checking for library sigar : not found But libsigar.so exists: # whereis libsigar libsigar: /lib64/libsigar.so I also ran ldconfig after installing the "libsigar" library. The node module compiles, links and works without

How do I write a waf file for a custom compiler?

我怕爱的太早我们不能终老 提交于 2019-12-13 00:12:55
问题 I got sick of looking up the magic symbols in make and decided to try waf. I'm trying to use calibre to make ebooks and I'd like to create a wscript that takes in a file, runs a program with some arguments that include that file, and produces an output. Waf should only build if the input file is newer than the output. In make, I'd write a makefile like this: %.epub: %.recipe ebook-convert $ .epub --test -vv --debug-pipeline debug Where % is a magic symbol for the basename of the file and $ a

Finding Libraries using pkg-config in Windows

我只是一个虾纸丫 提交于 2019-12-12 11:05:55
问题 I am, trying to find the gstreamer lib in windows (msvc) using pkg-config pkg-config gstreamer-0.10 --cflags --libs but i am getting any result like this Package gstreamer-0.10 was not found in the pkg-config search path. Perhaps you should add the directory containing `gstreamer-0.10.pc' to the PKG_CONFIG_PATH environment variable No package 'gstreamer-0.10' found a .pc like is created when a library is installed (automatically through the use of an RPM, deb, or other binary packaging system

Kill the previous command in a pipeline

会有一股神秘感。 提交于 2019-12-12 08:56:03
问题 I am running a simulation like this ./waf --run scratch/myfile | awk -f filter.awk How can I kill the waf command as soon as filter.awk detects that something happened (e.g. after a specific line is read)? I cannot change waf or myfile . I can only change filter.awk , and the above command (obviously). Update after comments: waf does not terminated after receiving SIGPIPE (as it should?) It spawns child processes, that need cleaning up. This is my own answer (and challenge) . After working on

Error when installing node.js on ubuntu 12.04- “Project not configured (run 'waf configure' first) ”

别等时光非礼了梦想. 提交于 2019-12-12 03:35:37
问题 So I'm following a node.js installation process (from a repository) with the following basic steps. git clone https://github.com/joyent/node.git cd node git checkout v0.6.16 #Try checking nodejs.org for what the stable version is ./configure make sudo make install After trying to run the Makefile in the command line (typing make.), I get the following error that I don't know how to fix. Project not configured (run 'waf configure' first) error. make: [program] Error 1 * I'm trying to do this

waf -how to add external library to wscript_build file

随声附和 提交于 2019-12-11 15:32:48
问题 I tried to add an external library to my waf: the winmm.lib library it looks like this now: srcs = ['timers.cpp'] LIBS ='winmm.lib'; create_lib('timers', srcs,LIBS) it doesn't work. It says I vmp library 'winmm.lib.py' was not found in the current library. can someone help? 回答1: I have never heard of "create_lib" in waf, so I have no idea what that function is or does, but I'll try to answer your question anyway. Below I have a very basic wscript that is my typical way of setting up a simple

Using a non standard c compiler with Waf

醉酒当歌 提交于 2019-12-11 13:53:46
问题 I have a non standard c compiler, for the example lets call it comp. How can I use it with Waf? I see that in all the examples: def options(ctx): ctx.load('compiler_c') def configure(ctx): ctx.load('compiler_c') And I want to load my own compiler - comp, so that any build or task will be assosiated with it? Thanks! 回答1: The best option is to define your own c_compiler tool, see for example icc in waflib/Tools or c_bgxlc in waflib/extras, modules called c_* in extras will be automatically

Use different source in waf build variant

感情迁移 提交于 2019-12-11 13:23:43
问题 Based on this it is possible to build different variants of a project in waf to different output directories 7.2.2. Changing the output directory / Configuration sets for variants (https://waf.io/book/#_custom_build_outputs) But I do not understand how to include different files or directories based on the variant . I modified the example from the waf-book like this, but I am missing how to build a different sourcefile or include files from different directories. def configure(ctx): pass def

How do I build/compile Aubio for Android?

試著忘記壹切 提交于 2019-12-11 08:49:09
问题 Aubio is a tool, written in C, that analyzes sound files. It is compatible for android, ios and many more platforms. My Question: Is there a step by step guide on how to build aubio for android - or at least a list of all the tools needed (waf, ndk, CMake, etc.) and how and when to use them? I have only developed apps for android in java before. I just want to run a simple given example from the project. I have already read the developer guides for android ndk and tried to figure out what to