string left = new StreamReader(stream).ReadToEnd();) P5 F9 D8 D; R. g$ ]
stream.Close(); $ v& y- k( S* {
if (Conversions.ToBoolean(Operators.OrObject(Operators.CompareObjectGreater(left, GlobalCode.g_settings["syns_db_date"], false), !File.Exists(Application.LocalUserAppDataPath + @"\tbssf.dat")))) ]3 Y O0 e! L1 G+ n
{ 6 i/ _( |; b" X5 \
DialogResult oK;! p1 T' |, ~4 l/ r. _
this.Show();$ o: |& J3 @1 |! S; k
Application.DoEvents();* a2 L3 W$ s( n& t+ i0 J. d! R
if (File.Exists(Application.LocalUserAppDataPath + @"\tbssf.dat")). P+ B' t' @7 @! q
{ 6 S6 I# R9 V7 O& M' E
oK = MessageBox.Show("A new version of the English synonyms database is available. Would you like to download it now? You will still be able to work while the new database downloads.", "Synonyms Db Update", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question);2 G. X Z7 ]2 w; L1 N) D
} * G' Y; Z2 n" B; J5 u( O
else& J; v+ h1 c( a1 y* C, b0 G2 m
{ a1 }* }- E" Y, \9 _/ p
oK = DialogResult.OK; % T( a; ^8 {, A/ A
} / V0 S; S9 ?! @
if ((oK == DialogResult.Yes) | (oK == DialogResult.OK)) - c+ \( b0 z1 }7 [7 S0 J. M7 K; m. V
{* o* x" H. F$ n3 ]- a6 o3 {5 E
if (oK == DialogResult.OK)6 j" V( m9 S- p% N6 T {& g% I- @
{! g- B3 K3 R$ R' R6 S
MessageBox.Show("The English synonyms database has not yet been installed, or has undergone a format change. Click OK to download and install the database. This usually takes less than one minute for a broadband connection, but may take longer for slower connections.\r\n\r\nYou may begin working in the software while the database downloads, but it's recommended that you wait until it's finished in order to get the most out of The Best Spinner.", "Synonyms Db", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);& J! p8 Y& r# G
} - B, |; S e! k1 g+ d% \
new Thread(new ThreadStart(this.DownloadSynsDbLaunch)).Start(); & v: D9 _0 N- G4 m
}! d* A' u! B1 Y8 V
} : F! j" {7 Q; @" N' ^
else8 o; t6 i7 _$ d X1 l/ R7 T+ [
{ 1 z1 g: u+ E* ]5 t( g2 [" r
this.status.Text = "Latest synonyms db loaded."; 4 r2 Q/ ^) K. B) e2 |
}9 W. b+ c- ?1 ~4 s7 h4 e
} ! n3 Y0 N2 f0 v# K% ?1 C a- z
% T a; D$ g- s( _; o
& [) V6 J( ~, i
复制代码
我想是不是只要有一个正常的用户名,修改TBS的本地程序绕过密码后就能正常试用TBS了?(本地登录验证我已经绕过了,任意用户密码登录,就是重要操作的时候程序会因没有正确的用户名程序代码无法分析,就出现异常。) 0 q* v2 a* R$ N5 y3 k7 P ; H. C5 ]2 C% u& Y ) ? k& Y# Q4 i# W$ w看一下演示,我用的最新版本的TBS 3.42 A/ U8 Y( h4 F3 l. G1 E / N v( r" t6 y- W 3 n# u. i7 s( d' j* i+ S0 d* z+ C0 Q) x9 P& n1 O5 t
" F: e( K6 |0 t1 h& I
4 ]" L' W) d6 J1 z( w* O; e" K下次学学怎么能渗透到服务器就好了。。。。。3 ]$ i0 _" y+ m
* m; {5 f% B6 F