[MySQL]回家弄了个曝库攻击

2017-2-22 写技术

公司隔壁是一家做图像识别的企业,去年才成立的,我最喜欢这种新鲜事物了,今天特意看了看他们的网站,用thinkphp框架做的。thinkphp有一些致命点,兴许他们没工夫处理呢。那今天就来检查检查吧。 首先,各个目录的列表权限——他们没有做处理,Application,Data,Runtime等目录一览无余,安装包都原封不动地躺在那,我清楚地看到他们改动了哪些文件。不过这些意义不是特别大,没有看到什么有价值的东西,有几个数据库脚本也只是原始安装文件。 然后,在Runtime目录下有日志文件,这个略有用,看到了登录后台,看到了登录用户‘Administrator’,而且用户只有一个,看到了一系...

阅读全文>>

标签: MySQL

评论(0) 浏览(2469)

[linux]arm-linux-ar not found

2017-2-16 写技术

There's an error in compiling Qt_ARM that: arm-linux-ar not found vi src/3rdparty/webkit/Source/JavaScriptCore/Makefile.WebKit Set AR as absolute path like: AR            = /opt/crosstool/gcc-4.4.3/bin/arm-linux-ar cqs It works.

阅读全文>>

标签: linux

评论(0) 浏览(2322)

[linux]invalid conversion from 'void*' to 'HB_PositionRec_*'

2017-2-15 写技术

I get some errors while compilling Qt_ARM: ../3rdparty/harfbuzz/src/harfbuzz-buffer.c: In function 'HB_Error hb_buffer_ensure(HB_BufferRec_*, HB_UInt)': ../3rdparty/harfbuzz/src/harfbuzz-buffer.c:77: error: invalid conversion from 'void*' to 'HB_PositionRec_*' ../3rdparty/harfbuzz/s...

阅读全文>>

标签: linux

评论(1) 浏览(1966)

[linux] The tslib functionality test failed while installing qtlib

2017-2-14 写技术

The tslib functionality test failed!  You might need to modify the include and library search paths by editing  QMAKE_INCDIR and QMAKE_LIBDIR in  /usr/local/Qt_ARM/mkspecs/qws/linux-arm-g++. 1.If installed tslib or not? If not,install it. 2.If defined tslib path exactlly in ...

阅读全文>>

标签: linux

评论(0) 浏览(2525)

[linux]__sync_add_and_fetch is not defined

2017-2-9 写技术

There's an error that "__sync_add_and_fetch is not defined" while I'm building Qt. Just because of gcc I used is version 3.4, It works after I changed gcc to version 4.6.

阅读全文>>

标签: linux

评论(0) 浏览(2044)

[JS]How to set a navigation hight light dynamic

2017-1-25 写技术

How to set a navigation hight light dynamic? There is a javascript solution: var url = window.location.pathname + window.location.search; url = url.replace(/(\/(p)\/\d+)|(&p=\d+)|(\/(id)\/\d+)|(&id=\d+)|(\/(group)\/\d+)|(&group=\d+)/, ""); $(".sNav").find("a[href='" + url...

阅读全文>>

标签: JS

评论(0) 浏览(1778)

[JS]How to decode xml string

2017-1-22 写技术

There's some part of my project. You must include the jquery first. var xmlDoc = $.parseXML( this.result ); var idx = 0; $(xmlDoc).find('Worksheet Table Row').each(function(){ }

阅读全文>>

标签: JS

评论(0) 浏览(1837)

[JS]How to read local file in JS

2017-1-22 写技术

How to read local file in JS? function jsReadFiles(files) { if (files.length) { var file = files[0]; var reader = new FileReader(); if (/text+/.test(file.type)){ reader.onload = function(){ $('body').append('<pre>' + this.result + '</pre>'); } ...

阅读全文>>

标签: JS

评论(0) 浏览(1805)

[JS]拼图游戏外挂开发实战

2016-12-31 写技术

    我在玩诛仙3,这个游戏本身做得很好,很精致,同时它的官网会时不进推出些活动,今天晚上就是跨年了,完美给我们的礼物就是一个拼图游戏,好像拼得越快资历越好,我这人手拙眼穷,肯定是最慢的。但我有代码呀,呵呵!     F12下去,打开了游戏页面的前端代码,看到它把一张图放到了5X5的矩阵里,形成25个小格子,其实每个格子就是一个DIV,每个DIV用background来显示图片,但图片是同一张,也就是原图,只是做了偏移,background-position不同而已……  &nb...

阅读全文>>

标签: JS

评论(0) 浏览(2000)

[php]Judge client terminal is mobile or not

2016-12-27 写技术

function isMobile(){ if (isset ($_SERVER['HTTP_X_WAP_PROFILE'])){ return TRUE; } if (isset ($_SERVER['HTTP_VIA'])){ return stristr($_SERVER['HTTP_VIA'], "wap") ? TRUE : FALSE; } if (isset ($_SERVER['HTTP_USER_AGENT'])) { $clientkeywords = array (...

阅读全文>>

标签: php

评论(0) 浏览(2373)

Powered by anycle 湘ICP备15001973号-1