151-170
web151(ǰ����֤�����)
- ����
- ľ���ļ�����Ϊeval.png���ϴ�ʱʹ��bpץ������filename����eval.pngΪeval.php
- ֻ����png
- ����/upload/eval.php
- ʹ��antsword����/upload/eval.php��Ȼ��
- �ļ��ϴ�����֪ʶ��
- ������ץ���ķ�����ֱ�Ӷ�ǰ���ļ�������
- F12���
- �ҵ�ǰ����֤�Ĵ���
- �����������ļ������ļ�������Ϊphp��
- �ϴ����ں��Ŵ����php�ļ�
- ���ø��ļ�
web152(�����֤��һ)
- ����
- ��������web151һģһ��
- �ļ��ϴ�����֪ʶ��
- ��Դ�룬type=button���п�������Ϣ
- �����пɲ鵽<button type=”button” class=”layui-btn” id=”upload” lay-data=”{url: ‘upload.php’, accept: ‘images’,exts:’png’}”>��chat����˵ʹ��Layui��ܣ�ע��accept �� exts����
- �ļ��ϴ�����֪ʶ��
- ��������ӵĺ������ʹ����ҳ��js�����������ƹ��ģ�becuase��˻���Content-Type���ݼ�mime type
- ֻ��mime type���м�����Ի�����ʹ��bpץ���ķ��������ƹ�
web153(user.ini+include)
- ����
- ����auto_prepend_file=1.png����Ϊ.user.ini���ļ��ϴ�(����Ҫbpץ������)
- Ȼ���ϴ��ں�һ�仰ľ����.png�ļ��Զ������ļ�����
- ���������һ����
- ע�⣺�Ͻ�������ʹ�õ���…/upload/index.phps
- �ļ��ϴ�֪ʶ�㲹��
- ��CTFER_�ļ��ϴ�
- php���ǰ(��������ǰ)����ʹ��@�����ⱨ��(�κ��������error)
web154(user.ini+�ļ�����У��)
- ����
- ץ�����汾php 7,nginx 1.6������ûɶ��00�ض�Ҳ�ò���
- �鿴upload����index.php��url�п��Կ���Ҳ���Դ��н���ó�
- �ϴ�.user.ini���ֿ��У��ϴ�php�ļ��������ݼ�飬����php��ػ���ħ��ͷ���Ƚ�<?php��Ϊ<?=���ֿ���antsword������
- �˴�û��ʹ��<??>������̱�ǩʹ����Ҫ����ij������
web155(ͬweb154 pass)
web156-159(web154-web159����ʹ��fuzz+.user.ini)
- web156
- �����ʹ�õĶ�[]���й��ˣ�ʹ��{}�������
- <?= @eval($_POST{“shell”})?>
- web157
- ������{}��[]��php
- ����ֱ���ϴ�����ִ���ļ�������linux�п���cat ../flag.???
- web158
- ǰ������Ϲ�����;�ֺţ���php��?>û��Ӱ��
- payloadֱ������ִ�м���
- web159
- ��ǰ��Ļ����Ϲ���()���ţ�����ֱ��ʹ�÷�����``������ֱ��ʹ������ִ��
- payload:
- �ļ��ϴ�����֪ʶ��
- web156��php��$_POST�������ʹ��{}������������Ԫ�أ�������[]ʱ����ʹ��
- web157��linux������ִ�п�����???���ϴ�����ľ�����Կ�������ִ��
- �ϴ�includeʵ����Ҳû���ϴ�ľ����ûʲô���ã����ÿ���ļ����м��
- but include�п��Խ��а�����־�����ļ��ϴ�ת���ļ��ϴ��ĵ�����(web159����ʹ��log�ķ���)
- �����Խ��php://filter�����ʹ��
- web159������ʹ��include log�ķ���û�гɹ�
- �ؼ����ƹ�����ʹ��.�������ַ���ƴ��
web160(��־�ļ�����)
- ���ⲽ��
- Դ�룬uploadĿ¼�����������Ͱ汾������.user.ini
- Ȼ��include��־������������ʵ�������Dz����пո�(ʹ��bp����)
- ������־�ļ�nginx��/var/log/nginx/access.log
- �ļ��ϴ�֪ʶ�㲹��
- ������ݺ��������˿���ʹ��bp����fuzz
- �ļ���������������ʹ��αЭ��
- payload��<?=include”ph”.”p://filter/convert.base64-encode/resource=../flag.p”.”hp”?>
web161(ħ��ͷ+��־�ļ�����)
- ���ⲽ��
- ��Դ�룬��/upload��ץ�����汾�������
- �ϴ�.user.ini���ԣ��ϴ�upload.png���У���wp���Ǽ�ħ��ͷ
- �ļ��ϴ�֪ʶ�㲹��
- ħ��ͷ�����CTFER_�ļ��ϴ�
- ��־�������ɣ����ua��д�������ֱ��д��get����post�У�������url������ܹ�����
- ua��д�����ʱ�ᱨ������1δ���壬1�������ǵ�key��˵���Ѿ�ֲ����