About Me

我的相片
Taipei<->HsinChu, Taiwan
我是 Mashi,叫我 媽許、罵許,我都會回頭XD
2017年2月5日 星期日

[FIXED] Windows 10 Version 1607 x64 系統的累積更新 (KB3213986) 無法更新

0 意見

[解決辦法 @ 2017/02/05 ]

%TEMP% 與 %TMP% 不要指向到 RamDisk



最近這一個月來,有個 Win10 更新 KB3213986 一直無法安裝成功

 (如下圖),

發現是因為 %TEMP% 指向 RamDisk,

而RamDisk需要在開機完成後才會掛載起來;

在重開機階段,系統更新時無法存取還沒掛載的位置,造成安裝失敗。





[解決步驟]

點選 【控制台\所有控制台項目\系統】=> 進階系統設定 => 環境變數,

在系統變數找到TEMP與TMP,編輯為 C:\TEMP,重開機安裝更新即可。









...
Read more ...
2015年11月8日 星期日
5 意見
前陣子用Popcorn Time大量欣賞電影,
原本io版沒問題,後來io被抄掉,改換成se版,
不過se版的中文字幕一直顯示不出來,只會出現 "口口口",
上網查了一下,可能跟字型有關係,
可是se版沒辦法設定字型,也沒辦法設定成透過外部撥放器撥放影片(?!),
因此就自己摸索了一下:

原本想說直接把Arial字型換掉,不過Win7說Arial是預設字型
,不給刪除,此路不通;

再來瀏覽一下C:\Program Files (x86)\Popcorn Time\plugins,
也沒有找到可能的字型設定plugin,一樣不通;

最後到 C:\Program Files (x86)\Popcorn Time\locales,
發現有 zh-TW.pak 這個檔案,用文字編輯器開啟來看一下,
發現一堆亂碼中出現:
10defaultdefault100100'Segoe UI',Arial,'Microsoft Jhenghei',
PMingLiu,sans-serifArial,'Microsoft Jhenghei',PMingLiu,sans-serif
有Arial又有'Microsoft Jhenghei'(微軟正黑體),
二話不說,直接打開 hexeditor 把 Arial刪除,
中文字幕就能正常撥放了,可喜可賀XD
...
Read more ...
2009年4月28日 星期二

[XD] 蠢斃了!!!

0 意見
/*mashimaro*/ Learning by Doing; 說 (下午 11:49):
你快自己寫一個
快!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!11
<打滾吧!阿貞> 說 (下午 11:49):
你快點告訴我
/*mashimaro*/ Learning by Doing; 說 (下午 11:50):
不要
<打滾吧!阿貞> 說 (下午 11:50):
我的比電視vista
/*mashimaro*/ Learning by Doing; 說 (下午 11:50):
我也是
<打滾吧!阿貞> 說 (下午 11:50):

/*mashimaro*/ Learning by Doing; 說 (下午 11:50):
自己寫 比較有印象
快拉!!!!!!!!!
<打滾吧!阿貞> 說 (下午 11:50):
那你把code給我
/*mashimaro*/ Learning by Doing; 說 (下午 11:50):
dev C 裝一下阿
不要
<打滾吧!阿貞> 說 (下午 11:50):
好啦
/*mashimaro*/ Learning by Doing; 說 (下午 11:50):
不好
才不到20行
<打滾吧!阿貞> 說 (下午 11:50):
我說好啦 我自己寫!
你在部好瞎毀
/*mashimaro*/ Learning by Doing; 說 (下午 11:50):
XDDDDDDDDDDDDDDD
/*mashimaro*/ Learning by Doing; 說 (下午 11:51):
XDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD...
Read more ...
2009年4月27日 星期一

Blogger 首頁載入加速 by 隱藏內文&大量圖片

3 意見
首先,一些常見的template會包含<span class="fullpost"></span>的功能。但是這種方式來隱藏內文最大的問題就是:

內文只是沒顯示,內容(ex.圖片)還是會被完整載入!

網路上就有人提供了相關解法,不過他的做法是特別處理圖片,所以當撰寫 blog 時,原本<img src="_link">的 html 語法要改為自訂的 javascrpt 函式,相當不直覺,對一般使用者來講太不友善。

於是我就部分採用了他的 javascript 方式,進一步將內文的多媒體資料完全不預先載入!

限制 1. 內文不能有單引號('),請用(`)或('+"'"+')代替!
   2. 內文不能有 </script>,請改用 </script'+'>代替!

同樣的,要先到 template 裡面加入一段code,利用 Blogger 預先提供的變數來判斷頁面。

Code:
<script language="javascript">
var blog_paetype="<data:blog.pagetype>";
</script>

再來就是文章了,這邊是我用的文章範本:

Code:
要顯示的提要
<script>if(blog_pageType=='index') document.write('<span class="fullpost"></span>');else if(blog_pageType=='item') document.write('<hr />
會隱藏的內文
');</script>


這邊可以測試網頁載入速度,比較看看吧!...
Read more ...
2009年3月13日 星期五

Run Ubuntu 8.10 with VMWare 6.5.0 tools

0 意見
Last Update:
2009/04/25

Environment:

Vista
VMWare 6.5.0 build-118166
Ubuntu 8.10 Desktop Version

Ref:
[1] http://ubuntuforums.org/showthread.php?t=987631
[2] http://open-vm-tools.sourceforge.net/
[3] https://edge.launchpad.net/ubuntu/intrepid/i386/xserver-xorg-input-vmmouse/
[4] https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-vmmouse/+bug/248521


Step 1 - Update & Upgrade

Code:
sudo apt-get update
sudo apt-get upgrade

Step 2 - Prepare Compile Environment for VMWARE TOOLS

Code:
sudo apt-get install build-essential linux-headers-$(uname -r) psmisc
sudo apt-get install gcc binutils make wget

Step 3 - Prepare
Compile Environment for OPEN VM TOOLS

And for the hack with the open tools I also installed the following (although some of these were found on sites describing what's needed for Ubuntu with a GUI, some might be unnecessary):

Code:
sudo apt-get install libgtk2.0-dev libgtkmm-2.4-dev
sudo apt-get install libproc-dev libdumbnet-dev xorg-dev
cd /tmp
sudo mkdir liburiparser
cd liburiparser
sudo wget http://ftp.ie.debian.org/debian/pool/main/u/uriparser/liburiparser1_0.7.4-1_i386.deb
sudo wget http://ftp.ie.debian.org/debian/pool/main/u/uriparser/liburiparser-dev_0.7.4-1_i386.deb
sudo dpkg -i liburiparser1_0.7.4-1_i386.deb
sudo dpkg -i liburiparser-dev_0.7.4-1_i386.deb
sudo apt-get install libicu-dev

Notice: You need to go http://ftp.ie.debian.org/debian/pool/main/u/uriparser/ to find and
download the latest version of liburiparser corresponding with your VM hardware.

Step 4 - Compile & Install OPEN VM TOOLS

Go to /tmp and download the open source version of the tools from http://open-vm-tools.sourceforge.net/.

Code:
sudo wget http://internap.dl.sourceforge.net/sourceforge/open-vm-tools/open-vm-tools-2009.04.23-162451.tar.gz

Unpack and build the open-vm-tools:

Code:
sudo tar xzvf open-vm-tools-*.tar.gz
cd open-vm-tools-*
sudo ./configure --includedir=/usr/include/uriparser
sudo make

Step 6 - Compile & Install VMWARE TOOLS

In the VMware management console, right click on the VM and tell VMware to install the VM tools then copy the tools:

Code:
sudo mount /media/cdrom0
sudo cp -a /media/cdrom0/VMwareTools*.gz /tmp/
cd /tmp/
sudo tar -xzvf VMwareTools*.gz

From the open source modules/linux folder we have the vmblock, vmhgfs, vmmemctl, vmsync and vmxnet modules that we need to tar up and place into the official VMware tools tarball:

Code:
cd /tmp/open-vm-tools-*/modules/linux/
for i in *; do sudo mv ${i} ${i}-only; sudo tar -cf ${i}.tar ${i}-only; done
cd ../../..
sudo mv -f open-vm-tools-*/modules/linux/*.tar vmware-tools-distrib/lib/modules/source/

Now we can run the regular VMware tools installer accepting all the defaults:

Code:
cd /tmp/vmware-tools-distrib/
sudo ./vmware-install.pl

Step 6 - Install Mouse Driver

Go https://edge.launchpad.net/ubuntu/intrepid/i386/xserver-xorg-input-vmmouse and download http://launchpadlibrarian.net/19327138/xserver-xorg-input-vmmouse_12.5.1-1ubuntu5.1_i386.deb

Code:
sudo wget http://launchpadlibrarian.net/19327138/xserver-xorg-input-vmmouse_12.5.1-1ubuntu5.1_i386.deb
sudo dpkg -i xserver-xorg-input-vmmouse_12.5.1-1ubuntu5.1_i386.deb

Done ! Try IT !...
Read more ...
2008年11月26日 星期三

[教學] CrackIt 16: "Get the number!"

0 意見
首先, 題目有提示是VB程式, 先用VB-Decompiler掃過

Private Sub Command1_Click() '4058B0

看到這個function裡面的
loc_0040592D: Form1.Unknown_405A60(arg_8, eax, Form1.QueryInterface, eax+03h, "")

用ollydbg追進去


這段很明顯是在判斷數字正確性, 錯誤的話會跳到00405b02

所以就下幾個數字進去測試

發現, 全部數字加起來必須為16h, 且確定的位數為 4__09, 10次內搞定: )...
Read more ...
2008年7月6日 星期日

[教學] Exploit 14: "Analyse this III!"

0 意見
觀察 sourcecode.txt,由下面兩段code可以發現

//register
fputs($hfile, ";::".$HTTP_POST_VARS['accessid']."::".$md5_passwd."::;\n");

//login
$datastring = $HTTP_POST_VARS['accessid']."::".$md5_pin;
if(strpos($con_file, $datastring)){
do check...
}

能夠偽裝成別人登入,
不過好像沒有用.....
再觀察別的地方!

// endsess

if((preg_match("/^[a-zA-Z0-9=]+$/i", $HTTP_GET_VARS['sessid'])==true)){
 $session_file = "xxxxx/".$HTTP_GET_VARS['sessid'];
 if(unlink($session_file)==false){
 do something...
 }

發現sessid在這邊不像register時候有檢查長度!
於是...DONE!

...
Read more ...
 
Blogger Template Layout Design by [ METAMUSE ] : Code Name BlackCat 2.0.0