接活,php、前端修改、bug修复、功能实现。小问题无偿解答
php吧
全部回复
仅看楼主
level 11
yydsphp 楼主
接活,php、前端修改、bug修复、功能实现。小问题无偿解答,长期信誉
2020年05月09日 01点05分 1
level 11
yydsphp 楼主
滴滴
2020年05月09日 23点05分 4
level 3
<?php
include("flag.php");
highlight_file(__FILE__);
class FileHandler {
protected $op;
protected $filename;
protected $content;
function __construct() {
$op = "1";
$filename = "/tmp/tmpfile";
$content = "Hello World!";
$this->process();
}
public function process() {
if($this->op == "1") {
$this->write();
} else if($this->op == "2") {
$res = $this->read();
$this->output($res);
} else {
$this->output("Bad Hacker!");
}
}
private function write() {
if(isset($this->filename) && isset($this->content)) {
if(strlen((string)$this->content) > 100) {
$this->output("Too long!");
die();
}
$res = file_put_contents($this->filename, $this->content);
if($res) $this->output("Successful!");
else $this->output("Failed!");
} else {
$this->output("Failed!");
}
}
private function read() {
$res = "";
if(isset($this->filename)) {
$res = file_get_contents($this->filename);
}
return $res;
}
private function output($s) {
echo "[Result]: <br>";
echo $s;
}
function __destruct() {
if($this->op === "2")
$this->op = "1";
$this->content = "";
$this->process();
}
}
function is_valid($s) {
for($i = 0; $i < strlen($s); $i++)
if(!(ord($s[$i]) >= 32 && ord($s[$i]) <= 125))
return false;
return true;
}
if(isset($_GET{'str'})) {
$str = (string)$_GET['str'];
if(is_valid($str)) {
$obj = unserialize($str);
}
}
2020年05月10日 05点05分 5
怎样才能找到flag
2020年05月10日 05点05分
[黑线]那个引入的php文件?
2020年05月10日 13点05分
@yydsphp 这是一道CTF题目
2020年05月12日 00点05分
@_若你安睡 哦,我不会做
2020年05月12日 05点05分
level 11
yydsphp 楼主
接单
2020年05月11日 00点05分 6
level 1
哪里出错了,换到d盘就又没问题了
2020年05月11日 08点05分 9
中文路径问题吧
2020年05月12日 05点05分
level 1
TP对接支付怎么收费 联系方式给个
2020年05月11日 11点05分 10
level 11
yydsphp 楼主
上来接个单,有活的喊我,定好了明天开工
2020年05月12日 13点05分 11
level 11
yydsphp 楼主
来单子,要学习的我也可以推荐师傅
2020年05月13日 00点05分 12
level 1
大佬这个给点建议。
2020年05月13日 00点05分 13
多on一次就行了
2020年05月13日 04点05分
不是那个问题,是where为啥不能写,表里字段,只让写一个一段名对应一个值。
2020年05月13日 07点05分
where是给出来现有的条件,你要给出实际值
2020年05月13日 08点05分
你要查关联直接join就行了
2020年05月15日 05点05分
level 3
在线接单
2020年05月13日 08点05分 15
level 11
yydsphp 楼主
肚子疼,起早了,开始接活
2020年05月13日 23点05分 16
level 11
yydsphp 楼主
又没单子了
2020年05月14日 07点05分 17
level 1
您好,您认不认识上海这边从事PHP开发的资深人士,我是猎头,有个近50万年薪的岗位推荐
2020年05月14日 08点05分 18
level 11
yydsphp 楼主
哦,不认识
2020年05月14日 09点05分 19
level 11
yydsphp 楼主
滴,早起卡
2020年05月15日 00点05分 20
1 2 3 4 5 6 尾页