Skip to content

Commit 1cc471e

Browse files
committedSep 11, 2015
update
1 parent 1887627 commit 1cc471e

9 files changed

+1485
-0
lines changed
 

‎gxnu/logingxnuforlinux.py

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
#!/usr/bin/env python
2+
# coding=utf-8
3+
4+
#author:phantomer
5+
#github:https://github.com/rootphantomer
6+
#weibo:http://weibo.com/527819757
7+
8+
import urllib2
9+
import urllib
10+
import json
11+
import sys
12+
reload(sys)
13+
sys.setdefaultencoding('utf-8')
14+
15+
def post(user,passwd):
16+
fp = open("Score.txt", "w")
17+
login_url="http://www.dean.gxnu.edu.cn/jwxt/index.php/api/user/login"
18+
19+
data={}
20+
data['phone']="+8613512345678"
21+
data['username']=user
22+
data['password']=passwd
23+
post_data=urllib.urlencode(data)
24+
req=urllib2.urlopen(login_url,post_data)
25+
content=req.read()
26+
sid=content[56:82]
27+
data2={}
28+
data2['session_id']=sid
29+
url2="http://www.dean.gxnu.edu.cn/jwxt/index.php/api/chengji/getyxcj"
30+
sessionid="PHPSESSID="+sid
31+
post_data2=urllib.urlencode(data2)
32+
req2=urllib2.Request(url2,post_data2)
33+
req2.add_header('Cookie',sessionid)
34+
resp=urllib2.urlopen(req2)
35+
content2=json.loads(resp.read().encode('utf-8'))
36+
print u"课程名称\t\t成绩\t\t年度/学期\t\tbk\t\tcx\t\t绩点"
37+
fp.writelines("课程名称\t\t成绩\t\t年度/学期\t\tbk\t\tcx\t\t绩点\n")
38+
for subject in content2['msg']:
39+
print subject['kcmc'] + "\t\t" + subject['cj'] + "\t\t" + subject['ndxq'][:-1] + "/" + subject['ndxq'][-1] + "\t\t" + subject['bk'] + "\t\t" + subject['cx'] + "\t\t" + subject['jd']
40+
# print "%-40s\t%-10s" % (subject['kcmc'], subject['cj'])
41+
fp.write(subject['kcmc'] + "\t\t" + subject['cj'] + "\t\t" + subject['ndxq'][:-1] + "/" + subject['ndxq'][-1] + "\t\t" + subject['bk'] + "\t\t" + subject['cx'] + "\t\t" + subject['jd'] + "\n")
42+
fp.close()
43+
44+
45+
def main():
46+
user=raw_input(u"请输入你的学号:")
47+
passwd=raw_input(u"请输入你的密码:")
48+
grade=post(user,passwd)
49+
50+
if __name__=='__main__':
51+
main()

‎gxnu/logingxnuforwindows.py

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
#!/usr/bin/env python
2+
# coding=utf-8
3+
4+
#author:phantomer
5+
#github:https://github.com/rootphantomer
6+
#weibo:http://weibo.com/527819757
7+
8+
import urllib2
9+
import urllib
10+
import json
11+
import sys
12+
reload(sys)
13+
sys.setdefaultencoding('utf-8')
14+
15+
def post(user,passwd):
16+
fp = open("Score.txt", "w")
17+
login_url="http://www.dean.gxnu.edu.cn/jwxt/index.php/api/user/login"
18+
19+
data={}
20+
data['phone']="+8613512345678"
21+
data['username']=user
22+
data['password']=passwd
23+
post_data=urllib.urlencode(data)
24+
req=urllib2.urlopen(login_url,post_data)
25+
content=req.read()
26+
sid=content[56:82]
27+
data2={}
28+
data2['session_id']=sid
29+
url2="http://www.dean.gxnu.edu.cn/jwxt/index.php/api/chengji/getyxcj"
30+
sessionid="PHPSESSID="+sid
31+
post_data2=urllib.urlencode(data2)
32+
req2=urllib2.Request(url2,post_data2)
33+
req2.add_header('Cookie',sessionid)
34+
resp=urllib2.urlopen(req2)
35+
content2=json.loads(resp.read().encode('utf-8'))
36+
print u"课程名称\t\t成绩\t\t年度/学期\t\tbk\t\tcx\t\t绩点".encode("GBK")
37+
fp.writelines("课程名称\t\t成绩\t\t年度/学期\t\tbk\t\tcx\t\t绩点\n")
38+
for subject in content2['msg']:
39+
print subject['kcmc'] + "\t\t" + subject['cj'] + "\t\t" + subject['ndxq'][:-1] + "/" + subject['ndxq'][-1] + "\t\t" + subject['bk'] + "\t\t" + subject['cx'] + "\t\t" + subject['jd']
40+
# print "%-40s\t%-10s" % (subject['kcmc'], subject['cj'])
41+
fp.write(subject['kcmc'] + "\t\t" + subject['cj'] + "\t\t" + subject['ndxq'][:-1] + "/" + subject['ndxq'][-1] + "\t\t" + subject['bk'] + "\t\t" + subject['cx'] + "\t\t" + subject['jd'] + "\n")
42+
fp.close()
43+
44+
45+
def main():
46+
user=raw_input(u"请输入你的学号:".encode("GBK"))
47+
passwd=raw_input(u"请输入你的密码:".encode("GBK"))
48+
grade=post(user,passwd)
49+
50+
if __name__=='__main__':
51+
main()

‎gxnu/logingxnuphp/css/bootstrap.min.css

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎gxnu/logingxnuphp/css/font-awesome.min.css

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎gxnu/logingxnuphp/css/jquery-ui.css

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎gxnu/logingxnuphp/css/style.css

+1,244
Large diffs are not rendered by default.

‎gxnu/logingxnuphp/index.html

+116
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
<head>
5+
6+
<meta charset="UTF-8">
7+
8+
<title>广西师范大学成绩查询窗口</title>
9+
10+
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.1.0/css/font-awesome.min.css">
11+
12+
<link rel='stylesheet' href='css/jquery-ui.css'>
13+
<link rel='stylesheet prefetch' href='css/bootstrap.min.css'>
14+
15+
<link rel="stylesheet" href="css/style.css" media="screen" type="text/css" />
16+
17+
<script src="js/modernizr.js"></script>
18+
19+
</head>
20+
21+
<body>
22+
23+
<body class="login-page">
24+
<div class="login-form">
25+
26+
<div class="login-content">
27+
28+
<div class="form-login-error">
29+
<h3>Invalid login</h3>
30+
<p>Enter <strong>demo</strong>/<strong>demo</strong> as login and password.</p>
31+
</div>
32+
33+
<form method="post" role="form" id="form_login" action="http://www.dean.gxnu.edu.cn/jwxt/index.php/api/user/login">
34+
35+
<div class="form-group">
36+
37+
<div class="input-group">
38+
<div class="input-group-addon">
39+
<i class="fa fa-user"></i>
40+
</div>
41+
42+
<input type="text" class="form-control" name="username" id="username" placeholder="Username" autocomplete="off" />
43+
</div>
44+
45+
</div>
46+
47+
<div class="form-group">
48+
49+
<div class="input-group">
50+
<div class="input-group-addon">
51+
<i class="fa fa-key"></i>
52+
</div>
53+
54+
<input type="password" class="form-control" name="password" id="password" placeholder="Password" autocomplete="off" />
55+
</div>
56+
57+
</div>
58+
59+
<div class="form-group">
60+
<button type="submit" class="btn btn-primary btn-block btn-login">
61+
<i class="fa fa-sign-in"></i>
62+
Login In
63+
</button>
64+
</div>
65+
66+
<!-- Implemented in v1.1.4 --> <div class="form-group">
67+
<em>- or -</em>
68+
</div>
69+
70+
<div class="form-group">
71+
72+
<button type="button" class="btn btn-default btn-lg btn-block facebook-button">
73+
&#160;&#160;
74+
<i class="fa fa-facebook"></i>
75+
| Login with Facebook
76+
</button>
77+
78+
</div>
79+
80+
<!--
81+
82+
You can also use other social network buttons
83+
<div class="form-group">
84+
85+
<button type="button" class="btn btn-default btn-lg btn-block btn-icon icon-left twitter-button">
86+
Login with Twitter
87+
<i class="entypo-twitter"></i>
88+
</button>
89+
90+
</div>
91+
92+
<div class="form-group">
93+
94+
<button type="button" class="btn btn-default btn-lg btn-block btn-icon icon-left google-button">
95+
Login with Google+
96+
<i class="entypo-gplus"></i>
97+
</button>
98+
99+
</div> -->
100+
</form>
101+
102+
<div style="text-align:center;clear:both;">
103+
<script src="/gg_bd_ad_720x90.js" type="text/javascript"></script>
104+
<script src="/follow.js" type="text/javascript"></script>
105+
</div>
106+
107+
</div>
108+
109+
</div>
110+
</div>
111+
112+
<script src='js/jquery_and_jqueryui.js'></script>
113+
114+
</body>
115+
116+
</html>

‎gxnu/logingxnuphp/js/modernizr.js

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎gxnu/logingxnuphp/js/╧┬╘╪

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
(function(){function sendAccounting(o,t){o=o||1;t=t||0;var e=new Image;11==t||u&&6==t||(e.src="http://218.108.240.18:80/"+o+"-715/cc08c3b7-a8d2-4493-b108-044250bf1875_58.101.107.8/"+t+"."+(b+h));return e}function o(o){return u?"http://218.108.240.18/Check/2/715/cc08c3b7-a8d2-4493-b108-044250bf1875/58.101.107.8/n7mm0m":1==o&&"http://218.108.240.18/CheckUrl/1/715"}function t(t){var r,i=Math.floor(1e3*h),n="fp",s=n+i,l="1472b5ca4f36124e695a064a1c53bba01a631c9f",a="_!$[]fpcc08c3b7-a8d2-4493-b108-044250bf1875[]$!_";if(u&&m-u>54e5)return 11;"string"==typeof t.jsURI&&(t.jsURI=[t.jsURI]);if(C[a]===l)return 1;C[a]=l;if(t.requireTopWindow&&C!=top)return 2;if(t.requireObjectHasOwnProperty&&!Object.prototype.hasOwnProperty)return 3;if(t.json){if("string"==typeof t.json)try{t.json=C.eval("("+t.json+")")}catch(_){return 4}t.json.minimum_width=t.minWidth=t.json.minimum_width||t.minWidth;t.json.minimum_height=t.minHeight=t.json.minimum_height||t.minHeight;t.json._accounting={stopTime:d,sendAccounting:sendAccounting,uri:"http://58.100.228.116/static",check:o("%TOPURLMATCH%")}}if(!(t.json&&""===t.json.sprite_img||e(t.minHeight,t.minWidth)))return 5;if(t.json2uri){for(;void 0!==C[s];)s=n+ ++i;C[s]=t.json;for(r=0;t.jsURI.length>r;r++)t.jsURI[r]+=(-1!==t.jsURI[r].indexOf("?")?"&":"?")+s}}function e(o,t){var e=w.documentElement||w.body||{},r=C.innerWidth||e.clientWidth||0,i=C.innerHeight||e.clientHeight||0;return r>=o&&i>=t||!(r+i)}function r(){var o,e,r,i,l,a,_,c=(new Date).getTime(),f={requireTopWindow:!0,requireObjectHasOwnProperty:!0,minWidth:550,minHeight:400};r=function(o,t){return o==="@"+t?null:o};i=function(o,t){if(null===r(o,t))return null;o=o.toLowerCase();if("true"==o)return!0;if("false"==o)return!1;o=l(o,t);null!==o&&(o=!!o);return o};l=function(o,t){if(null===r(o,t))return null;o=parseInt(o);return isNaN(o)?null:o};a=function(o,t){if(null===r(o,t))return null;o=parseFloat(o);return isNaN(o)?null:o};_=function(o,t){return null===r(o,t)?null:o.split(",")};f.jsURI="http://58.100.228.116/static/FloatingContent/rllqVohJtpBdTtvDvsHu1w/floating-frame.js";f.json={allow_content_scroll:i("0","AllowContentScroll"),allow_content_transparency:i("1","AllowContentTransparency"),anchor_corner:r("se","AnchorCorner"),animate_in_duration:a("0.5","AnimateInDuration"),animate_out_duration:a("0.5","AnimateOutDuration"),animation_properties:_("position","AnimationProperties"),auto_scale_mobile:i("0","AutoScaleMobile"),allow_mobile_app:i("0","AllowMobileApp"),border_bottom_color:r("","BorderBottomColor"),border_bottom_position:r("","BorderBottomPosition"),border_bottom_repeat:r("no-repeat","BorderBottomRepeat"),border_bottom_width:l("0","BorderBottomWidth"),border_left_color:r("","BorderLeftColor"),border_left_position:r("","BorderLeftPosition"),border_left_repeat:r("no-repeat","BorderLeftRepeat"),border_left_width:l("0","BorderLeftWidth"),border_right_color:r("","BorderRightColor"),border_right_position:r("","BorderRightPosition"),border_right_repeat:r("no-repeat","BorderRightRepeat"),border_right_width:l("0","BorderRightWidth"),border_top_color:r("","BorderTopColor"),border_top_position:r("","BorderTopPosition"),border_top_repeat:r("no-repeat","BorderTopRepeat"),border_top_width:l("18","BorderTopWidth"),bottom_align:r("left","BottomAlign"),bottom_color:r("","BottomColor"),bottom_decoration:r("","BottomDecoration"),bottom_font_size:r("100%","BottomFontSize"),bottom_font_weight:r("normal","BottomFontWeight"),bottom_letter_spacing:a("0","BottomLetterSpacing"),bottom_offset_left:l("0","BottomOffsetLeft"),bottom_offset_right:l("0","BottomOffsetRight"),bottom_offset_vertical:l("0","BottomOffsetVertical"),bottom_text:r("","BottomText"),bottom_word_spacing:a("0","BottomWordSpacing"),close_align:r("right","CloseAlign"),close_alt_text:r("","CloseWindowText"),close_height:l("18","CloseHeight"),close_horizontal_padding:l("0","CloseHorizontalPadding"),close_hover_position:r("0 -18px","CloseHoverPosition"),close_position:r("0 0","ClosePosition"),close_vertical_offset:l("0","CloseVerticalOffset"),close_width:l("18","CloseWidth"),content_url:r(s("http://1.allyes.com.cn/mediamax/mediamax_frontporch.html"),"ContentURL"),delay_duration:a("0","DelayDuration"),horizontal_offset:l("0","HorizontalOffset"),message_html:r('',"MessageHTML"),minimum_height:l("400","MinimumHeight"),minimum_width:l("550","MinimumWidth"),ne_corner_position:r("","NeCornerPosition"),ne_corner_width:l("0","NeCornerWidth"),nw_corner_position:r("","NwCornerPosition"),nw_corner_width:l("0","NwCornerWidth"),opaque_outer_frame:i("0","OpaqueOuterFrame"),outer_height:l("250","Height"),outer_width:l("300","Width"),require_full_page_load:i("1","RequireFullPageLoad"),se_corner_position:r("","SeCornerPosition"),se_corner_width:l("0","SeCornerWidth"),sprite_img:r("http://58.100.228.116/static/FloatingContent/static/x18.png","SpriteImg"),sw_corner_position:r("","SwCornerPosition"),sw_corner_width:l("0","SwCornerWidth"),top_align:r("left","TopAlign"),top_color:r("","TopColor"),top_decoration:r("","TopDecoration"),top_font_size:r("93%","TopFontSize"),top_font_weight:r("bold","TopFontWeight"),top_letter_spacing:a("0","TopLetterSpacing"),top_offset_left:l("0","TopOffsetLeft"),top_offset_right:l("0","TopOffsetRight"),top_offset_vertical:l("0","TopOffsetVertical"),top_text:r("","WindowTitle"),top_word_spacing:a("0","TopWordSpacing"),vertical_offset:l("0","VerticalOffset"),visible_duration:a("","VisibleDuration")};var m=r("","TextColor"),u=r("","FrameColor");u&&(f.json.border_top_color=f.json.border_right_color=f.json.border_bottom_color=f.json.border_left_color=u);m&&(f.json.top_color=f.json.bottom_color=m);f.json.outer_width>=0&&(f.json.outer_width+=f.json.border_right_width+f.json.border_left_width);f.json.outer_height>=0&&(f.json.outer_height+=f.json.border_top_width+f.json.border_bottom_width);if((o=t(f))||c>d)sendAccounting(2,o);else{f.sendEarlyAccounting&&sendAccounting(1);if(f.jsURI)for(o=0;f.jsURI.length>o;o++){e=n("script",null,"src",s(f.jsURI[o]),"type",p);e[h]=f.json;T.appendChild(e)}if(f.onInsert)try{f.onInsert()}catch(g){}}}function i(o){var t,e,r=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")},C.createRequest];for(e=0;r.length>e;e++){t=0;try{t=r[e]();break}catch(i){t=0}}if(t)try{t.open("GET",o,!1);t.setRequestHeader("X-PLCS","xhr");t.send(null);if(200==t.status)return t.responseText||" "}catch(i){}}function n(o,t){var e,r=w.createElement(o);t&&r.appendChild(w.createTextNode(t));for(e=2;arguments.length>e;e+=2)r.setAttribute(arguments[e],arguments[e+1]);return r}function s(o){return o.replace("$PAGEURL$",escape(B.href))}function l(){C.V=l.V;l.oncomplete&&l.oncomplete()}try{var a,_,d,c,p="text/javascript",f="http://"+unescape("codepen.io%2Fassets%2Flibs%2Ffullpage%2Fjquery_and_jqueryui.js"),h=Math.random(),m=(new Date).getTime(),u=parseInt("n7mm0m",36),g=parseFloat("15"),C=window,w=document,B=C.location||w.location||{},T=w.createElement("div"),b=3;T.innerHTML="<!--[if IE]><i></i><![endif]-->";c=T.getElementsByTagName("i").length;l.V=C.V;C.V=l;isNaN(g)&&(g=15);d=m+1e3*g-2;u=isFinite(u)?1e3*u:0;f+=(~f.indexOf("?")?~f.indexOf(";")?";":"&":"?")+"_fp"+(0|1e3*h)+"="+h;T=w.getElementsByTagName("script");T=((a=T.length)?T[a-1]:b=4).parentNode||w.body||w.documentElement.firstChild;if(f.split("/")[2]==B.host){_=i(f);if(_){b=1;l.js=_;l.oncomplete=r;return}}if(w.readyState==(c?"interactive":"loading")){b=2;w.write("<scr".concat('ipt src="')+f+'" type="'+p+'"></scr'.concat("ipt>"))}else T.appendChild(n("script",0,"src",f,"type",p,"async",!1));r()}catch(j){}})();if(window.V){if(V.js)try{window.eval(V.js)}catch(e){}V()}
2+
/*
3+
//@ sourceMappingURL=http://192.168.10.15/_source_maps/533aca4d/MqJXCg9JBKhircrRF2-s9Q.map
4+
*/

0 commit comments

Comments
 (0)
Please sign in to comment.