2015年12月22日 星期二

Android apps 電話運用 (sip)

android  sip 網路電話 (for 4G)

1. 內建於設定的通話

2. Media5-fone

The Media5-fone® is a SIP client app that enables users to make and receive VoIP calls over Wi-Fi, 3G, 4G, and LTE networks. It is interoperable with most IP-PBX systems and will transform your smartphone into IP-PBX phone extension.

The Media5-fone® allows Service Providers to fully realize the commercial potential of mobility and VoIP.

Android apps 電話運用:

1. 來電先生: 虛假來電

2. 來電救救我 : 虛假來電

3. whoscall : 未卜先知who來電

4. Record My Call : 電話錄音
**********************************************
SIP setup

http://cmp.nkuht.edu.tw/voip/

sip ip: 203.68.0.66
port:5060

ios : vaxvoip
android: media5 sipdroid
pc: qutecom
linux: twinle

2015年12月1日 星期二

regedit


C:\Windows\system32>reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU /v ScheduledInstallTime /f
The operation completed successfully.

C:\Windows\system32>reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU /v ScheduledInstallDay /f
The operation completed successfully.

C:\Windows\system32>reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU /v NoAutoUpdate /f
The operation completed successfully.

C:\Windows\system32>reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU /v AUOptions /f
The operation completed successfully.

place comments in a .reg file?

A. To include comments in a registry file, place a semicolon (;) at the beginning of the line, as shown below:


; This will delete the key below because of the - sign
\[-HKEY_LOCAL_MACHINE\SOFTWARE\SavillTech\key\]

************************************************************

winmerge

WinMerge 是 Windows 作業系統下的、開放源碼的比較與合併的工具。WinMerge 能比較資料夾與檔案,以直接看到原文的易懂易處理的方式,呈現比較出的差異。WinMerge 可以獨立運用,也可以當成某個比較差異/合併工具的外部編輯器。


Registry Live Watch 監控「登錄檔」修改狀況,即時跳出通知、執行應變程式




regedit在安裝前後的變動
regshot regsnap (推前者)


阿榮福利味: Registrar Registry Manager Lite 5.51



************************************************************************

2015年11月26日 星期四

變更IE中我的最愛的路徑

變更IE中我的最愛的路徑

IE中預設的我的最愛的路徑是:C:\Users\你的帳號\Favorites
或是你在檔案總管中的位址列上輸入:%USERPROFILE%\Favorites


最愛的路徑目錄

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders


ref:http://ss64.com/nt/if.html
IF EXIST C:\logs\install.log (Echo Complete) ELSE (Echo failed)

IF EXIST %USERPROFILE%\Favorites  (Echo Complete) ELSE (Echo failed)


ref: http://forum.twbts.com/thread-10186-1-1.html
F :在批次檔中執行條件處理。

指令詳解:

IF [NOT] ERRORLEVEL number command
IF [NOT] string1==string2 command
IF [NOT] EXIST filename command

2015年11月25日 星期三

windows update server (WSUS) and sysrep

net stop wuauserv


reg.exe delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate /v SusClientId /f

reg.exe delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate /v SusClientIDValidation /f


net start wuauserv


wuauclt.exe /resetauthorization /detectnow

************************************************************************************


sysrep:

ref:
https://technet.microsoft.com/zh-tw/library/cc721973(v=ws.10).aspx

Sysprep 命令列選項

Sysprep 可搭配使用下列命令列選項:
sysprep.exe [/oobe | /audit] [/generalize] [/reboot | /shutdown | /quit] [/quiet] [/unattend:answerfile]

 

選項描述
/audit
將電腦重新啟動成稽核模式。稽核模式可讓您將其他驅動程式或應用程式新增至 Windows。您也可以在將 Windows 安裝送交給使用者之前先測試它。
如果有指定自動的 Windows 安裝檔案,Windows 安裝程式的稽核模式就會執行 auditSystem 與 auditUser 設定階段。
/generalize
準備要進行映像處理的 Windows 安裝。如果指定此選項,就會移除 Windows 安裝中所有唯一的系統資訊。安全性識別碼 (SID) 會重設、所有系統還原點都會清除,並且事件記錄也會予以刪除。
下次電腦啟動時,specialize 設定階段就會執行。然後會建立新的安全性識別碼 (SID),並重設 Windows 啟用的時鐘 (如果時鐘尚未重設三次的話)。
/oobe
將電腦重新啟動成 Windows 歡迎畫面模式。Windows 歡迎畫面可讓使用者自訂其 Windows 作業系統、建立使用者帳戶、命名電腦及其他工作。回應檔案之 oobeSystem 設定階段中的任何設定,會在 Windows 歡迎畫面啟動之前立即處理。
/reboot
重新啟動電腦。使用此選項可稽核電腦,並驗證首次執行經驗是否運作正常。
/shutdown
Sysprep 完成之後關閉電腦。
/quiet
執行 Sysprep 而不顯示螢幕確認訊息。如果您要自動化 Sysprep,請使用此選項。
/quit
在執行指定的命令後關閉 Sysprep。
/unattend:answerfile
在自動安裝期間將回應檔案中的設定套用至 Windows。
answerfile
指定要使用之回應檔案的路

update WSUS client ID:

net stop wuauserv


reg.exe delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate /v SusClientId /f

reg.exe delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate /v SusClientIDValidation /f


net start wuauserv


wuauclt.exe /resetauthorization /detectnow




Ref:
http://ageansea.pixnet.net/blog/post/28915393

Windows 背景自動更新程式 Wuauclt.exe


Wuauclt.exe = A Windows Update AutoUpdate Client, Background process which checks with Microsoft website for updates to the operating system.
Wuauclt有 2 個非常有用的參數:Detectnow 和 Resetauthorization 。
◎ Detectnow 
在命令提示字元下輸入 wuauclt .exe /detectnow ,可以立即讓Client端立即與 WUS Server 聯繫,檢測是否有新的Service Pack。 在Client端,可以在OS的安裝目錄下檢查 WindowsUpdate.log 文件,看是否與Server聯繫檢測更新,如果更新過程有錯誤,也可在該文件中查看錯誤原因。
如果是在WSUS Server上無法使用WSUS管理主控台列出的某些更新,則是需要指定reset 參數。
◎ Resetauthorization 
WUS 在Client 端使用了 Cookie 儲存一些信息。默認該 Cookie 1小時後失效,如果你在使用 detectnow 參數立即檢查Client 端Service Pack 時發現 Cookie 過期無法更新時可以使用 Resetauthorization 重新申請對話。 在命令提示字元下輸入
wuauclt .exe /resetauthorization /detectnow
管理員在debug時,除了可以查看Client端的 WindowsUpdate.log 文件外,還可以在Server端的 %ProgramFiles%\Microsoft Windows Update Services\ 目錄下檢查 LogFiles\SoftwareDistribution.log 文件進行偵錯。




ref:http://ss64.com/nt/reg.html

REG.exe

Read, Set or Delete registry keys and values, save and restore from a .REG file.
Syntax:

   REG QUERY [ROOT\]RegKey /v ValueName [/s]
   REG QUERY [ROOT\]RegKey /ve  --This returns the (default) value
   
   REG ADD [ROOT\]RegKey /v ValueName [/t DataType] [/S Separator] [/d Data] [/f]
   REG ADD [ROOT\]RegKey /ve [/d Data] [/f]  -- Set the (default) value

   REG DELETE [ROOT\]RegKey /v ValueName [/f]
   REG DELETE [ROOT\]RegKey /ve [/f]  -- Remove the (default) value
   REG DELETE [ROOT\]RegKey /va [/f]  -- Delete all values under this key

   REG COPY  [\\SourceMachine\][ROOT\]RegKey [\\DestMachine\][ROOT\]RegKey

   REG EXPORT [ROOT\]RegKey FileName.reg
   REG IMPORT FileName.reg
   REG SAVE [ROOT\]RegKey FileName.hiv
   REG RESTORE \\MachineName\[ROOT]\KeyName FileName.hiv
   
   REG LOAD KeyName FileName
   REG UNLOAD KeyName
   
   REG COMPARE [ROOT\]RegKey [ROOT\]RegKey [/v ValueName] [Output] [/s]
   REG COMPARE [ROOT\]RegKey [ROOT\]RegKey [/ve] [Output] [/s]

Key:
   ROOT :
         HKLM = HKey_Local_machine (default)
         HKCU = HKey_current_user
         HKU  = HKey_users
         HKCR = HKey_classes_root

   ValueName : The value, under the selected RegKey, to edit.
               (default is all keys and values)

   /d Data   : The actual data to store as a "String", integer etc

   /f        : Force an update without prompting "Value exists, overwrite Y/N"

   \\Machine : Name of remote machine - omitting defaults to current machine.
              Only HKLM and HKU are available on remote machines.

   FileName  : The filename to save or restore a registry hive.

   KeyName   : A key name to load a hive file into. (Creating a new key)

   /S        : Query all subkeys and values.

   /S Separator : Character to use as the separator in REG_MULTI_SZ values
                  the default is "\0" 

   /t DataType  : REG_SZ (default) | REG_DWORD | REG_EXPAND_SZ | REG_MULTI_SZ

   /reg:32   : Force REG.exe to write to the 32-bit registry location
   /reg:64   : Force REG.exe to write to the 64-bit registry location

             By default a 32-bit process (such as an SCCM client or a 32 bit MSI installer)
             on a 64 bit machine, will use a 32-bit view of the registry: HKLM\SOFTWARE\Wow6432Node
             Use the /REG switch to over-ride this.

   Output    : /od (only differences) /os (only matches) /oa (all) /on (no output)
Notes: 
Any of the above commands can be run against a remote machine by adding \\MachineName to the command line, assuming the Remote Registry Service is running.
Registry data stored under HKCU will be visible and writable by the currently logged in user.
Registry data stored under HKLM will be visible to all users and writable by administrators.
REG RESTORE has a tendency not to work, possibly due to firewall issues, Export and Import are much more reliable.
Backslash characters

2015年10月26日 星期一

linux setup

非root系統帳號登入方式(2/2)
●設定方式
–執行下列指令,列出所有使用者、UID及shell:
#awk -F: '{print $1 ":" $3 ":" $7}' /etc/passwd
–針對UID小於500之非root系統帳號,執行下列指令進行帳號鎖定與shell設定:
# usermod -L (系統帳號)
# usermod -s /sbin/nologin (系統帳號)

執行下列指令列出使用空白密碼之帳號:
# awk -F: '($2 == "") {print}' /etc/shadow

UID=0之帳號(2/2)
●設定方式
–執行下列指令,列出UID=0之帳號:
–# awk -F: '($3 == "0") {print}' /etc/passwd
–若存在非root帳號,可執行下列指令移除帳號或重新設定UID:
#userdel (帳號)
或
#usermod -u (UID) (帳號)

密碼最短使用期限(2/2)
●設定方式
–編輯/etc/login.defs檔案,新增或修改成以下內容:
PASS_MIN_DAYS 1
–針對進行上述設定前就已存在之使用者帳號,須再執行下列指令,使該帳號之密碼最短使用期限變更為1天:
#chage –m 1 (使用者帳號)

密碼最長使用期限(2/2)
●設定方式
–編輯/etc/login.defs檔案,新增或修改成以下內容:
PASS_MAX_DAYS 60
–針對進行上述設定前就已存在之使用者帳號,須再執行下列指令,才能使密碼最長使用期限變更為60天
#chage –M 60 (使用者帳號)

密碼到期前提醒使用者變更密碼(1/2)
●設定方式
–編輯/etc/login.defs檔案,新增或修改成以下內容
PASS_WARN_AGE 14
–針對進行上述設定前就已存在之使用者帳號,須再執行下列指令,才能使密碼到期前14天提醒使用者變更密碼
#chage -W 14 (使用者帳號)

密碼最小長度
●建議值
–12個字元
●說明
–這項原則設定決定使用者帳號的密碼可包含的最少字元數,預設值為8個字元
●設定方式
–編輯/etc/login.defs檔案,新增或修改成以下內容:
PASS_MIN_LEN 12

密碼規則設定方式
●設定方式
–編輯/etc/pam.d/system-auth檔案,新增或修改成以下內容:
password requisite pam_cracklib.so try_first_pass retry=3 minlen=12 dcredit=-1 ucredit=-1 ocredit=-1 lcredit=-1 difok=3

帳戶鎖定login 數目值
●建議值
–5
●說明
–這項原則設定決定使用者帳號被鎖定的嘗試登入失敗次數,以降低密碼暴力攻擊之影響
●設定方式
–編輯/etc/pam.d/system-auth檔案,在「pam_unix」前,新增或修改成以下內容:
auth required pam_tally2.so deny=5 onerr=fail

強制執行密碼歷程記錄
●建議值
–24
●說明
–這項原則設定決定重複使用舊密碼前,必須與使用者帳號相關的唯一新密碼數目
–這項原則可讓系統管理員藉由確定不再繼續重複使用舊密碼,以增加安全性
●設定方式
–編輯/etc/pam.d/system-auth檔案,新增或修改成以下內容:
password sufficient pam_unix.so existing_options remember=24

密碼到期後,帳號停用前的天數
●設定方式
–編輯/etc/default/useradd檔案,新增或修改成以下內容:
INACTIVE=30
–針對進行上述設定前就已存在之使用者帳號,須再執行下列指令,才能使密碼到期後,超過30天就進行帳號停用:
#chage -I 30 (使用者帳號)


Bash shell閒置時登出時間
●設定方式
–在/etc/profile.d目錄下新增tmout.sh檔案,並在檔案增加以下內容:
TMOUT=900
readonly TMOUT
export TMOUT

SELinux啟用狀態
●建議值
–enforcing
●說明
–這項原則設定決定系統開機時是否啟用SELinux,以及啟用的模式
–設定為enforcing:表示系統強制執行SELinux,會阻擋有可能危害伺服器安全的操作
●設定方式
–編輯/etc/selinux/config檔案,新增或修改成以下內容:
SELINUX=enforcing

SELinux政策
●建議值
–targeted
●說明
–這項原則設定決定SELinux運作時所採用之政策
–設定為targeted:此為預設設定,針對網路服務限制較多,針對本機限制較少
●設定方式
–編輯/etc/selinux/config檔案,新增或修改成以下內容:
SELINUXTYPE=targeted

開機載入程式啟用SELinux
●建議值
–啟用
●說明
–這項原則設定決定是否在開機載入程式中啟用SELinux
–SELinux設定檔(/etc/selinux/config)內容可被開機載入程式覆蓋,因此,須確認開機載入程式未停用SELinux,以確保SELinux正常運作
●設定方式
–編輯/etc/grub.conf檔案,移除selinux=0或enforcing=0內容

記錄變更登入與登出資訊事件
●設定方式
–編輯/etc/audit/audit.rules檔案,新增或修改成以下內容:
-w /var/log/faillog -p wa -k logins
-w /var/log/lastlog -p wa -k logins



2015年10月25日 星期日

Windows repair(Fix) & IE repair (Fix)

IE repair (Fix)
"C:\Windows\System32\ie4uinit.exe" -reinstall


Windows repair(Fix) & IE repair (Fix)

【Microsoft Fix it 軟體檔案】
軟體語言:繁體中文
軟體性質:免費
檔案大小:339 KB
系統支援:Windows Vista/7
軟體下載按我下載
************************************************
「IEFix」是專門用來修復IE核心檔案的程式

Fix IE Utility 瀏覽器修復工具,解決 IE 速度變慢、打不開或被廣告綁架等問題

軟體資訊

軟體名稱:Fix IE Utility
軟體語系:英文
作業系統:Windows XP / Vista / 7 / 8
官方網站:The Windows Club
下載鏈結:官方網站下載
若你透過 Fix IE Utility 無法修復瀏覽器裡被強行安裝的工具列,例如 Ask Toolbar、Hao123 或 Snap.do,可利用另一個 Junkware Removal Tool 試試看能否解決。



2015年10月19日 星期一

Avira

 Avira 官方發佈的生命週期:



Microsoft Windows operating systems

Operating system / platformAvira support until
(DD.MM.YYYY)
Microsoft Windows XP (Professional Edition, Professional 64 Bit Edition, Home Edition, Tablet PC Edition)..
08.04.2015..
Engine and signatures updates for the products running on Windows XP..
08.04.2016..
Microsoft Windows 7 Home Basic, Home Premium, Home Premium N, Starter, Starter N, Ultimate, Ultimate N13.01.2018..
Microsoft Windows Server 2008 (Datacenter Server, Enterprise Server, Standard Server, Web Server)..
13.01.2016..
Microsoft Windows 7 Enterprise, Enterprise N, Professional, Professional N13.01.2018..
Windows 8/Windows 8.1..
09.01.2019

2015年10月12日 星期一

2015年9月29日 星期二

PC 設成無線基地台 wireless AP

PC 設成無線基地台 wireless AP
netsh wlan set hostednetwork mode=allow ssid=xxx key=yyyy
netsh wlan start hostednetwork

2015年9月23日 星期三

Google:How to Monitor your Website’s Uptime with Google Docs

How to Monitor your Website’s Uptime with Google Docs

http://www.labnol.org/internet/website-uptime-monitor/21060/


2015年8月25日 星期二

windows Tools(sysinternals)(technet)(PSR)

Windows 7/8 有隱藏版螢幕錄製器

在Windows 7中啟動PSR Bug Report工具

http://www.techbang.com/posts/23334-win-called-hidden-7-8-screen-recorder

按下〔Win〕+〔R〕組合鍵叫出「執行」視窗,然後在「開啟」右側的空白欄位內輸入「psr」,接著按一下〔確定〕按鈕或直接按下鍵盤上的〔Enter〕

******************************************

https://technet.microsoft.com/zh-tw/

https://technet.microsoft.com/en-us/sysinternals/bb545027

View the current Internet sockets open on the

system

• Command

– netstat –an

– fport

• Pre-Requisites

– fport from http://www.mcafee.com/tw/downloads/free-tools/fport.aspx

Utilities


Sysinternals Networking Utilities

AD Explorer
Active Directory Explorer is an advanced Active Directory (AD) viewer and editor.
AD Insight
AD Insight is an LDAP (Light-weight Directory Access Protocol) real-time monitoring tool aimed at troubleshooting Active Directory client applications.
AdRestore
Undelete Server 2003 Active Directory objects.
PipeList
Displays the named pipes on your system, including the number of maximum instances and active instances for each pipe.
PsFile
See what files are opened remotely.
PsPing
Measures network performance.
PsTools
The PsTools suite includes command-line utilities for listing the processes running on local or remote computers, running processes remotely, rebooting computers, dumping event logs, and more.
ShareEnum
Scan file shares on your network and view their security settings to close security holes.
TCPView
Active socket command-line viewer.
Whois
See who owns an Internet address.

Sysinternals Security Utilities

AccessChk
This tool shows you the accesses the user or group you specify has to files, Registry keys or Windows services.
AccessEnum
This simple yet powerful security tool shows you who has what access to directories, files and Registry keys on your systems. Use it to find holes in your permissions.
Autologon
Bypass password screen during logon.
Autoruns
See what programs are configured to startup automatically when your system boots and you log in. Autoruns also shows you the full list of Registry and file locations where applications can configure auto-start settings.
LogonSessions
List active logon sessions
Process Explorer
Find out what files, registry keys and other objects processes have open, which DLLs they have loaded, and more. This uniquely powerful utility will even show you who owns each process.
PsExec
Execute processes with limited-user rights.
PsLoggedOn
Show users logged on to a system.
PsLogList
Dump event log records.
PsTools
The PsTools suite includes command-line utilities for listing the processes running on local or remote computers, running processes remotely, rebooting computers, dumping event logs, and more.
SDelete
Securely overwrite your sensitive files and cleanse your free space of previously deleted files using this DoD-compliant secure delete program.
ShareEnum
Scan file shares on your network and view their security settings to close security holes.
ShellRunas
Launch programs as a different user via a convenient shell context-menu entry.
Sigcheck
Dump file version information and verify that images on your system are digitally signed.
Sysmon
Monitors and reports key system activity via the Windows event log.



2015年8月19日 星期三

netcat

http://blogger.gtwang.org/2014/02/linux-utility-netcat-examples.html

固定頁面的網頁伺服器

下面這行指令可以在 8000 連接埠上建立一個提供固定頁面(不管 HTTP 的請求為何,都送出 test.html)的網頁伺服器:

while true; do nc -l 8000 < test.html; done


手動使用 SMTP 協定寄信

在測試郵件伺服器是否正常時,可以使用這樣的方式手動寄送 Email:
nc localhost 25 << EOF
HELO host.example.com
MAIL FROM: <user@host.example.com>
RCPT TO: <user2@host.example.com>
DATA
Body of email.
.
QUIT
EOF

手動送出 HTTP 請求

這行指令會送出一個 HTTP 請求至網頁伺服器上,並接收網頁伺服器的回應訊息:
echo -ne "GET / HTTP/1.0\r\n\r\n" | nc www.google.com 80

2015年7月13日 星期一

IE的相容性檢視設定









IE的相容性檢視設定


2.再由Registry Export :
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\BrowserEmulation\ClearableListData 


***************************************************************************
Ineternet explorer reg setting:(放於兩個機碼目錄下)
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer
or
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings

****************************************************************
http://webap.nkuht.edu.tw/teacher/doc/CompatibilityView.pdf

1.開啟 IE 瀏覽器後,請先確 認教師同仁 系統或職員同仁 系統是否 加入我的最 愛,若無請先 由工具列之我的最 愛加到我的最愛 【新增 】即可。

(附註:IE 11 版需加入相容性 檢視設定之網站皆需加入我的最 愛)


2.於新增此網站鍵 入「nkuht.edu.tw 」按【新增 按【關閉 】



3.六、Internet Explore 11 版請確認,工具 網際網路選項 【刪除】勾選 「保留 我的最愛 網站資料 」關閉。
(附註 :IE 11 版需加入相容性檢視設定之網站皆我的最愛 )