// 點讚後,圖示變成深綠色
public void housePostInfoLike (View view) {
if ( p_bIsLike == false ) {
p_imgviewHousePostLike.setImageResource(R.mipmap.ic_selected_like);
p_bIsLike = true;
- Jun 07 Wed 2017 20:02
Android - Switch button
- Jun 07 Wed 2017 19:58
Android - layoutInflater
p_rlHousePostRootView = (RelativeLayout) findViewById(R.id.rlHousePostRootView);
// 作品信息的彈出視圖
public void housePostPopUpInfo(View view) {
LayoutInflater layoutInflater = (LayoutInflater)getBaseContext().getSystemService(LAYOUT_INFLATER_SERVICE);
- Jun 07 Wed 2017 19:53
Android - Base Adapter
private CAdapterHousePostChooseType houseChooseTypeAdapter;
houseChooseTypeAdapter = new CAdapterHousePostChooseType(getApplicationContext());
p_lvHouseChooseTypeInfo.setAdapter(houseChooseTypeAdapter);
p_lvHouseChooseTypeInfo.setOnItemClickListener(new AdapterView.OnItemClickListener() {
- Jun 06 Tue 2017 16:44
Android - okhttp
package kkchan.com.fafaticket;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
- Apr 16 Sun 2017 19:14
网络安全 - 反射型XSS漏洞(实战)1
- Apr 16 Sun 2017 19:06
网络安全 - SQL注入(1)
- Apr 16 Sun 2017 18:55
网络安全 - 反射型XSS(1)
Chrome的安全性很高,所以把目标转向安全性没那麽高的Firefox。
反射型XSS。
http://2016822.byethost18.com/HanGong/login.php?msg=fail
可以看到msg後面的值,能直接显示在HTML视图中,那就可以随便插入js和html标签。
http://2016822.byethost18.com/HanGong/login.php?msg=<script>alert(String.fromCharCode(88,83,83)) </script>
- Apr 16 Sun 2017 13:30
Base64和Base32加密