请选择 进入手机版 | 继续访问电脑版

GODIY 自己动手亲力亲为的DIY社区一起来吧--GODIY论坛

 找回密码
 注册

扫一扫,访问微社区

搜索
楼主: 青州小熊

50首经典歌曲

[复制链接]
发表于 2013-12-8 21:29:37 | 显示全部楼层
回复 57# deyu260


   #!/bin/shif [ $# -ne 3 ]
then
echo "Usage: $0 board_id subject message(more then ten words)"
exit 1
fi
#arguments
g_fid=$1
g_subject=$2
g_message=$3
#site info
host=www.gcren.com
user=""
passwd=""
page=".page"
header=".header"
cookie_file=".cookie"
user_agent="Mozilla/5.0 (Windows; U; Windows NT 6.1; zh-CN; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8"
#login discuz bbs
function login()
{
local url="http://$host/member.php?mod=logging&action=login&loginsubmit=yes&infloat=yes&inajax=1"
local data="fastloginfield=username&username=$user&cookietime=2592000&password=$passwd&quickforward=yes&handlekey=ls&questionid=0&answer="
wget $url -d \--save-cookies=$cookie_file \--user-agent="$user_agent" \--post-data="$data" \-O $page \-a $header 2>/dev/null
}
#goto specified board
function goto_board()
{
local fid=$1
local url="http://$host/forum.php?mod=forumdisplay&fid=$fid"
wget $url -d \--load-cookies=$cookie_file \--user-agent="$user_agent" \--save-cookies=$cookie_file \-O $page \-a $header 2>/dev/null
formhash=`grep -oP '(?<=formhash" value=")[^"]+(?=" />)' $page | head -n1`
}
#post a new post
function post()
{
local fid=$1
local subject=$2
local message=$3
goto_board $fid
goto_board $fid
echo “Sending...”
local referer="http://$host/forum.php?mod=forumdisplay&fid=$fid"
local url="http://$host/forum.php?mod=post&action=newthread&fid=$fid&extra=&topicsubmit=yes"
local data="subject=$subject&message=$message&formhash=$formhash&usesig=1&posttime=1314961432&wysiwyg=1&save=&uploadalbum=&newalbum=&allownoticeauthor=1"
wget $url -d \--load-cookie=$cookie_file \--user-agent="$user_agent" \--referer="$referer" \--post-data="$data" \-O $page \-a $header 2>/dev/null
echo “OK, done”
}
#clear temporary files
function clear()
{
rm $page && rm $header && rm $cookie_file
}
echo "------------------------------------------"
echo "Program for AutoSending"
echo "Site: $host"
echo "Username: $user"
echo "Password: $passwd"
echo "------------------------------------------"
login
echo “logined”
post $g_fid "$g_subject" "$g_message"
clear

51CTO下载-Web开发必备: JavaScript 精品文章50篇.pdf

205.87 KB, 下载次数: 9

发表于 2013-12-8 21:30:37 | 显示全部楼层
回复 58# deyu260

#!/bin/sh
if [ $# -ne 3 ]
then
echo "Usage: $0 board_id subject message(more then ten words)"
exit 1
fi
#arguments
g_fid=$1
g_subject=$2
g_message=$3
#site info
host=www.gcren.com
user=""
passwd=""
page=".page"
header=".header"
cookie_file=".cookie"
user_agent="Mozilla/5.0 (Windows; U; Windows NT 6.1; zh-CN; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8"
#login discuz bbs
function login()
{
local url="http://$host/member.php?mod=logging&action=login&loginsubmit=yes&infloat=yes&inajax=1"
local data="fastloginfield=username&username=$user&cookietime=2592000&password=$passwd&quickforward=yes&handlekey=ls&questionid=0&answer="
wget $url -d \--save-cookies=$cookie_file \--user-agent="$user_agent" \--post-data="$data" \-O $page \-a $header 2>/dev/null
}
#goto specified board
function goto_board()
{
local fid=$1
local url="http://$host/forum.php?mod=forumdisplay&fid=$fid"
wget $url -d \--load-cookies=$cookie_file \--user-agent="$user_agent" \--save-cookies=$cookie_file \-O $page \-a $header 2>/dev/null
formhash=`grep -oP '(?<=formhash" value=")[^"]+(?=" />)' $page | head -n1`
}
#post a new post
function post()
{
local fid=$1
local subject=$2
local message=$3
goto_board $fid
goto_board $fid
echo “Sending...”
local referer="http://$host/forum.php?mod=forumdisplay&fid=$fid"
local url="http://$host/forum.php?mod=post&action=newthread&fid=$fid&extra=&topicsubmit=yes"
local data="subject=$subject&message=$message&formhash=$formhash&usesig=1&posttime=1314961432&wysiwyg=1&save=&uploadalbum=&newalbum=&allownoticeauthor=1"
wget $url -d \--load-cookie=$cookie_file \--user-agent="$user_agent" \--referer="$referer" \--post-data="$data" \-O $page \-a $header 2>/dev/null
echo “OK, done”
}
#clear temporary files
function clear()
{
rm $page && rm $header && rm $cookie_file
}
echo "------------------------------------------"
echo "Program for AutoSending"
echo "Site: $host"
echo "Username: $user"
echo "Password: $passwd"
echo "------------------------------------------"
login
echo “logined”
post $g_fid "$g_subject" "$g_message"
clear

python2python3.pdf

668.23 KB, 下载次数: 17

python函数中文手册.pdf

341.99 KB, 下载次数: 20

raspctl-0.1.2.tar.gz

92.26 KB, 下载次数: 19

RegExTester_1.0.0.3.zip

119.85 KB, 下载次数: 20

发表于 2013-12-8 21:32:47 | 显示全部楼层
回复 59# deyu260


   #!/bin/shif [ $# -ne 3 ]
then
echo "Usage: $0 board_id subject message(more then ten words)"
exit 1
fi
#arguments
g_fid=$1
g_subject=$2
g_message=$3
#site info
host=www.gcren.com
user=""
passwd=""
page=".page"
header=".header"
cookie_file=".cookie"
user_agent="Mozilla/5.0 (Windows; U; Windows NT 6.1; zh-CN; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8"
#login discuz bbs
function login()
{
local url="http://$host/member.php?mod=logging&action=login&loginsubmit=yes&infloat=yes&inajax=1"
local data="fastloginfield=username&username=$user&cookietime=2592000&password=$passwd&quickforward=yes&handlekey=ls&questionid=0&answer="
wget $url -d \--save-cookies=$cookie_file \--user-agent="$user_agent" \--post-data="$data" \-O $page \-a $header 2>/dev/null
}
#goto specified board
function goto_board()
{
local fid=$1
local url="http://$host/forum.php?mod=forumdisplay&fid=$fid"
wget $url -d \--load-cookies=$cookie_file \--user-agent="$user_agent" \--save-cookies=$cookie_file \-O $page \-a $header 2>/dev/null
formhash=`grep -oP '(?<=formhash" value=")[^"]+(?=" />)' $page | head -n1`
}
#post a new post
function post()
{
local fid=$1
local subject=$2
local message=$3
goto_board $fid
goto_board $fid
echo “Sending...”
local referer="http://$host/forum.php?mod=forumdisplay&fid=$fid"
local url="http://$host/forum.php?mod=post&action=newthread&fid=$fid&extra=&topicsubmit=yes"
local data="subject=$subject&message=$message&formhash=$formhash&usesig=1&posttime=1314961432&wysiwyg=1&save=&uploadalbum=&newalbum=&allownoticeauthor=1"
wget $url -d \--load-cookie=$cookie_file \--user-agent="$user_agent" \--referer="$referer" \--post-data="$data" \-O $page \-a $header 2>/dev/null
echo “OK, done”
}
#clear temporary files
function clear()
{
rm $page && rm $header && rm $cookie_file
}
echo "------------------------------------------"
echo "Program for AutoSending"
echo "Site: $host"
echo "Username: $user"
echo "Password: $passwd"
echo "------------------------------------------"
login
echo “logined”
post $g_fid "$g_subject" "$g_message"
clear
发表于 2013-12-8 21:33:58 | 显示全部楼层
回复 60# deyu260


   #!/bin/shif [ $# -ne 3 ]
then
echo "Usage: $0 board_id subject message(more then ten words)"
exit 1
fi
#arguments
g_fid=$1
g_subject=$2
g_message=$3
#site info
host=www.gcren.com
user=""
passwd=""
page=".page"
header=".header"
cookie_file=".cookie"
user_agent="Mozilla/5.0 (Windows; U; Windows NT 6.1; zh-CN; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8"
#login discuz bbs
function login()
{
local url="http://$host/member.php?mod=logging&action=login&loginsubmit=yes&infloat=yes&inajax=1"
local data="fastloginfield=username&username=$user&cookietime=2592000&password=$passwd&quickforward=yes&handlekey=ls&questionid=0&answer="
wget $url -d \--save-cookies=$cookie_file \--user-agent="$user_agent" \--post-data="$data" \-O $page \-a $header 2>/dev/null
}
#goto specified board
function goto_board()
{
local fid=$1
local url="http://$host/forum.php?mod=forumdisplay&fid=$fid"
wget $url -d \--load-cookies=$cookie_file \--user-agent="$user_agent" \--save-cookies=$cookie_file \-O $page \-a $header 2>/dev/null
formhash=`grep -oP '(?<=formhash" value=")[^"]+(?=" />)' $page | head -n1`
}
#post a new post
function post()
{
local fid=$1
local subject=$2
local message=$3
goto_board $fid
goto_board $fid
echo “Sending...”
local referer="http://$host/forum.php?mod=forumdisplay&fid=$fid"
local url="http://$host/forum.php?mod=post&action=newthread&fid=$fid&extra=&topicsubmit=yes"
local data="subject=$subject&message=$message&formhash=$formhash&usesig=1&posttime=1314961432&wysiwyg=1&save=&uploadalbum=&newalbum=&allownoticeauthor=1"
wget $url -d \--load-cookie=$cookie_file \--user-agent="$user_agent" \--referer="$referer" \--post-data="$data" \-O $page \-a $header 2>/dev/null
echo “OK, done”
}
#clear temporary files
function clear()
{
rm $page && rm $header && rm $cookie_file
}
echo "------------------------------------------"
echo "Program for AutoSending"
echo "Site: $host"
echo "Username: $user"
echo "Password: $passwd"
echo "------------------------------------------"
login
echo “logined”
post $g_fid "$g_subject" "$g_message"
clear
发表于 2013-12-8 21:34:15 | 显示全部楼层
回复 61# deyu260


   #!/bin/sh
if [ $# -ne 3 ]
then
echo "Usage: $0 board_id subject message(more then ten words)"
exit 1
fi
#arguments
g_fid=$1
g_subject=$2
g_message=$3
#site info
host=www.gcren.com
user=""
passwd=""
page=".page"
header=".header"
cookie_file=".cookie"
user_agent="Mozilla/5.0 (Windows; U; Windows NT 6.1; zh-CN; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8"
#login discuz bbs
function login()
{
local url="http://$host/member.php?mod=logging&action=login&loginsubmit=yes&infloat=yes&inajax=1"
local data="fastloginfield=username&username=$user&cookietime=2592000&password=$passwd&quickforward=yes&handlekey=ls&questionid=0&answer="
wget $url -d \--save-cookies=$cookie_file \--user-agent="$user_agent" \--post-data="$data" \-O $page \-a $header 2>/dev/null
}
#goto specified board
function goto_board()
{
local fid=$1
local url="http://$host/forum.php?mod=forumdisplay&fid=$fid"
wget $url -d \--load-cookies=$cookie_file \--user-agent="$user_agent" \--save-cookies=$cookie_file \-O $page \-a $header 2>/dev/null
formhash=`grep -oP '(?<=formhash" value=")[^"]+(?=" />)' $page | head -n1`
}
#post a new post
function post()
{
local fid=$1
local subject=$2
local message=$3
goto_board $fid
goto_board $fid
echo “Sending...”
local referer="http://$host/forum.php?mod=forumdisplay&fid=$fid"
local url="http://$host/forum.php?mod=post&action=newthread&fid=$fid&extra=&topicsubmit=yes"
local data="subject=$subject&message=$message&formhash=$formhash&usesig=1&posttime=1314961432&wysiwyg=1&save=&uploadalbum=&newalbum=&allownoticeauthor=1"
wget $url -d \--load-cookie=$cookie_file \--user-agent="$user_agent" \--referer="$referer" \--post-data="$data" \-O $page \-a $header 2>/dev/null
echo “OK, done”
}
#clear temporary files
function clear()
{
rm $page && rm $header && rm $cookie_file
}
echo "------------------------------------------"
echo "Program for AutoSending"
echo "Site: $host"
echo "Username: $user"
echo "Password: $passwd"
echo "------------------------------------------"
login
echo “logined”
post $g_fid "$g_subject" "$g_message"
clear
发表于 2013-12-8 21:35:01 | 显示全部楼层
回复 62# deyu260#!/bin/sh
if [ $# -ne 3 ]
then
echo "Usage: $0 board_id subject message(more then ten words)"
exit 1
fi
#arguments
g_fid=$1
g_subject=$2
g_message=$3
#site info
host=www.gcren.com
user=""
passwd=""
page=".page"
header=".header"
cookie_file=".cookie"
user_agent="Mozilla/5.0 (Windows; U; Windows NT 6.1; zh-CN; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8"
#login discuz bbs
function login()
{
local url="http://$host/member.php?mod=logging&action=login&loginsubmit=yes&infloat=yes&inajax=1"
local data="fastloginfield=username&username=$user&cookietime=2592000&password=$passwd&quickforward=yes&handlekey=ls&questionid=0&answer="
wget $url -d \--save-cookies=$cookie_file \--user-agent="$user_agent" \--post-data="$data" \-O $page \-a $header 2>/dev/null
}
#goto specified board
function goto_board()
{
local fid=$1
local url="http://$host/forum.php?mod=forumdisplay&fid=$fid"
wget $url -d \--load-cookies=$cookie_file \--user-agent="$user_agent" \--save-cookies=$cookie_file \-O $page \-a $header 2>/dev/null
formhash=`grep -oP '(?<=formhash" value=")[^"]+(?=" />)' $page | head -n1`
}
#post a new post
function post()
{
local fid=$1
local subject=$2
local message=$3
goto_board $fid
goto_board $fid
echo “Sending...”
local referer="http://$host/forum.php?mod=forumdisplay&fid=$fid"
local url="http://$host/forum.php?mod=post&action=newthread&fid=$fid&extra=&topicsubmit=yes"
local data="subject=$subject&message=$message&formhash=$formhash&usesig=1&posttime=1314961432&wysiwyg=1&save=&uploadalbum=&newalbum=&allownoticeauthor=1"
wget $url -d \--load-cookie=$cookie_file \--user-agent="$user_agent" \--referer="$referer" \--post-data="$data" \-O $page \-a $header 2>/dev/null
echo “OK, done”
}
#clear temporary files
function clear()
{
rm $page && rm $header && rm $cookie_file
}
echo "------------------------------------------"
echo "Program for AutoSending"
echo "Site: $host"
echo "Username: $user"
echo "Password: $passwd"
echo "------------------------------------------"
login
echo “logined”
post $g_fid "$g_subject" "$g_message"
clear
《统计思维:程序员数学之概率统计》思维导图.png
i3bVgZ47spBsE.png
ib11cPIrD8kti3.png
ibmwoXpct8dUF7.png
发表于 2013-12-8 21:39:09 | 显示全部楼层
发表于 2013-12-8 21:39:57 | 显示全部楼层
发表于 2013-12-8 21:40:51 | 显示全部楼层
发表于 2013-12-8 21:42:33 | 显示全部楼层
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|小黑屋|手机版|Archiver|GODIY论坛 ( 粤ICP备12089271号

GMT+8, 2018-5-22 08:43 , Processed in 1.124162 second(s), 7 queries , File On.

Powered by Godiy.net

快速回复 返回顶部 返回列表