V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  ydhcui  ›  全部回复第 1 页 / 共 1 页
回复总数  17
2015-12-19 15:16:01 +08:00
回复了 int64ago 创建的主题 程序员 很多免费的就是这样被某些人玩坏的
闲吃萝卜淡操心 说不定人家 idc 巴不得你这样帮他推广呢 就像 win 的盗版一样
2015-09-25 15:34:17 +08:00
回复了 ibcker 创建的主题 PHP 有用 PHPHub 搭建社区的兄弟么?发现了个高危漏洞!
哈哈 乌云邀请码 300 一个? 200 一个谁要 你要多少我有多少
2015-09-20 14:46:25 +08:00
回复了 RHFS 创建的主题 微信 微信推送有毒啊。。。
没看新闻么 xcodeghost
2015-09-10 12:47:44 +08:00
回复了 JungleHi 创建的主题 分享创造 写了个网页聊天工具
<?php
error_reporting (E_ALL ^ E_NOTICE );
date_default_timezone_set ('PRC'); //设置为北京时间
if ( isset ($_REQUEST['c']) )
{
$Name = $_REQUEST['name'];
setcookie ("name", $Name, time ()+(365 * 24 * 60 * 60 )); /* expire in 1 year */
$items = $_REQUEST['items'];
setcookie ("items", $items, time ()+(365 * 24 * 60 * 60 )); /* expire in 1 year */
$roomname = $_REQUEST['roomname'];
setcookie ("roomname", $roomname, time ()+(365 * 24 * 60 * 60 )); /* expire in 1 year */
if (isset ($_POST['AudioNty'])||isset ($_GET['AudioNty'])){
$AudioNty='checked';
}
if (isset ($_POST['VibrateNty'])||isset ($_GET['VibrateNty'])){
$VibrateNty='checked';
}
if ($items <1 ){$items = 1;}

$txt=$_REQUEST['c'];
//取消 PHP 自动把"变成 /"
$txt=stripslashes ($_REQUEST['c']);
$txt=nl2br ($txt );
//写入消息到文件
$roomname = iconv ("UTF-8", "GBK", $roomname );

if (file_exists ("msg/room-$roomname.html")==FALSE ) {//如果此房间不存在 则创建并写入下面 5 条说明信息 可解决无文件引起的 PHP 错误
$HelpInfo = "<b>Jungle </b>".date ("m-d H:i:s")."<br>Hi ,感谢使用 HiMsg<hr>


chat-js.php 文件
任意文件读取喔。~~
2015-06-05 19:18:29 +08:00
回复了 ydhcui 创建的主题 Python 请教一个 py2 和 py3 的转换问题 。
我把
fills = fills + chr(randint(0,0xff))
v = (chr((filln - 2)|0xF8)
这两个会产生str的地方直接写死成bytes类型了
2015-06-05 19:17:09 +08:00
回复了 ydhcui 创建的主题 Python 请教一个 py2 和 py3 的转换问题 。
@fzinfz ... 感谢回复
问题已经解决了 虽然没有从根本上解决。
2015-06-04 09:15:39 +08:00
回复了 ydhcui 创建的主题 Python 请教一个 py2 和 py3 的转换问题 。
@czheo
然后我把
'''python
fills = fills + chr(randint(0,0xff))
v = (chr((filln - 2)|0xF8)
换成
fills = fills + chr(randint(0,0xff)).encode()
v = (chr((filln - 2)|0xF8).encode()
提示错误
Traceback (most recent call last):
File "DASDA.PY", line 58, in <module>
base64.b64encode(encrypt(value,key)).replace('/', '-').replace('+', '*').rep
lace('=', '_')
File "DASDA.PY", line 51, in encrypt
o = xor(g,tr)
File "DASDA.PY", line 18, in xor
a1,a2 = struct.unpack('>LL', a[0:8])
struct.error: unpack requires a bytes object of length 8
2015-06-03 20:56:19 +08:00
回复了 ydhcui 创建的主题 Python 请教一个 py2 和 py3 的转换问题 。
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2822 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 23ms · UTC 03:22 · PVG 11:22 · LAX 20:22 · JFK 23:22
Developed with CodeLauncher
♥ Do have faith in what you're doing.