29 September 2011

Explorer Disappeared from the world.

จะทำอย่างไร เมื่อ Explorer หายไปจาก windows แล้วไงล่ะ ก็คง ต้องกด คีย์อมตะ Ctrl+Alt+Delete ก็จะได้ 
Windows Task Manager ขึ้นมาสำบายดีจ้าจุฟๆๆ เลย จากนั้นก็ ไปที่ File---->RUN พิมพ์ C:\Windows\explorer.exe แล้ว Enter เบาๆ ก็จะได้ กลับมาแหละ 


แต่ถ้ามันหายไปจากโลกแล้วทำอย่างไร ตอบแบบผู้เกรียนๆ ก็ลง windows ใหม่ไง จบ อืม.......นะ ถ้าจะเอาอย่างนั้นก็ OK!!! แต่เมื่อจำเป็นเราก็ควรมีวิชามารกันบ้าง รู้ไว้ใช่ว่า เผื่อเกรียนถาม นะครับ 


Command Line เถอะ วัยรุ่น!!!!!!   หรือจะทำเป็น shortcuts ก็ได้ เด้อครับ 




Wireless Networks pop-up
rundll32.exe van.dll,RunVAN



Advanced Restore
sdclt.exe /restorewizardadmin



Restore Files
sdclt.exe /restorewizard



Backup Location & Settings
sdclt.exe /configure



Add Network Location (wizard)
rundll32.exe shwebsvc.dll,AddNetPlaceRunDll



Indexing Options
control.exe srchadmin.dll



Notification Cache
rundll32.exe shell32.dll,Options_RunDLL 5



Aero (Transparency) Off
Rundll32.exe DwmApi #104



Aero (Transparency) On
Rundll32.exe DwmApi #102



Welcome Center
rundll32.exe oobefldr.dll,ShowWelcomeCenter



Add/Remove Programs
RunDll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,0



Content Advisor
RunDll32.exe msrating.dll,RatingSetupUI



Control Panel
RunDll32.exe shell32.dll,Control_RunDLL



Date and Time Properties
RunDll32.exe shell32.dll,Control_RunDLL timedate.cpl



Display Settings
RunDll32.exe shell32.dll,Control_RunDLL access.cpl,,3



Device Manager
RunDll32.exe devmgr.dll DeviceManager_Execute



Folder Options – File Types
RunDll32.exe shell32.dll,Control_Options 2



Folder Options – General
RunDll32.exe shell32.dll,Options_RunDLL 0



Folder Options – Search
RunDll32.exe shell32.dll,Options_RunDLL 2



Folder Options – View
RunDll32.exe shell32.dll,Options_RunDLL 7



Forgotten Password Wizard
RunDll32.exe keymgr.dll,PRShowSaveWizardExW



Hibernate
RunDll32.exe powrprof.dll,SetSuspendState



Keyboard Properties
RunDll32.exe shell32.dll,Control_RunDLL main.cpl @1



Lock Screen
RunDll32.exe user32.dll,LockWorkStation



Mouse Properties
RunDll32.exe shell32.dll,Control_RunDLL main.cpl @0



Map Network Drive
RunDll32.exe shell32.dll,SHHelpShortcuts_RunDLL Connect



Network Connections
RunDll32.exe shell32.dll,Control_RunDLL ncpa.cpl



Power Options
RunDll32.exe Shell32.dll,Control_RunDLL powercfg.cpl



Regional Settings
RunDll32.exe shell32.dll,Control_RunDLL intl.cpl,,3



Stored Usernames and Passwords
RunDll32.exe keymgr.dll,KRShowKeyMgr



System Properties: Advanced
RunDll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,4



System Properties: Automatic Updates
RunDll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,5



Taskbar Properties
RunDll32.exe shell32.dll,Options_RunDLL 1



User Accounts
RunDll32.exe shell32.dll,Control_RunDLL nusrmgr.cpl



Windows Security Center
RunDll32.exe shell32.dll,Control_RunDLL wscui.cpl



Windows – About
RunDll32.exe SHELL32.DLL,ShellAboutW



Unplug/Eject Hardware
RunDll32.exe shell32.dll,Control_RunDLL hotplug.dll



Windows Firewall
RunDll32.exe shell32.dll,Control_RunDLL firewall.cpl



Wireless Network Setup
RunDll32.exe shell32.dll,Control_RunDLL NetSetup.cpl,@0,WNSW



Open Control Panel (All Items)
explorer.exe shell:::{21ec2020-3aea-1069-a2dd-08002b30309d}



Manage Wireless Networks
explorer.exe shell:::{1fa9085f-25a2-489b-85d4-86326eedcd87}



Sound Control Playback Tab
rundll32.exe shell32.dll,Control_RunDLLmmsys.cpl



Sound Control Sounds Tab
rundll32.exe shell32.dll,Control_RunDLLmmsys.cpl,,2



Sound Control Recording Tab
rundll32.exe shell32.dll,Control_RunDLLmmsys.cpl,,1



Add/Remove Programs
rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl



Add/Remove Windows Components
rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,2



Set Program Access and Computer Defaults
rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,3



People Near Me
rundll32.exe shell32.dll,Control_RunDLL collab.cpl



People Near Me Sign In Tab
rundll32.exe shell32.dll,Control_RunDLL collab.cpl,,1



Screen Resolution
rundll32.exe shell32.dll,Control_RunDLL desk.cpl



Personalization
rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,2



Screen Saver
rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,1



Windows Firewall
rundll32.exe shell32.dll,Control_RunDLL firewall.cpl



Device Manager
rundll32.exe shell32.dll,Control_RunDLL hdwwiz.cpl



Power Options
rundll32.exe shell32.dll,Control_RunDLL powercfg.cpl



Power Options Change Plan Settings
rundll32.exe shell32.dll,Control_RunDLL powercfg.cpl,,1



System Properties
rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl



System Properties Hardware Tab
rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,2



System Properties Advanced Tab
rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,3



System Properties System Protection Tab
rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,4



System Properties Remote Tab
rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,5



Pen and Touch Tablet PC Settings
rundll32.exe shell32.dll,Control_RunDLL tabletpc.cpl



Pen and Touch Tablet PC Settings Flicks Tab
rundll32.exe shell32.dll,Control_RunDLL tabletpc.cpl,,1



Pen and Touch Tablet PC Settings Handwriting Tab
rundll32.exe shell32.dll,Control_RunDLL tabletpc.cpl,,2



Phone and Modem Options
rundll32.exe shell32.dll,Control_RunDLL telephon.cpl



Phone and Modem Options Modems Tab
rundll32.exe shell32.dll,Control_RunDLL telephon.cpl,,1



Phone and Modems Options Advanced Tab
rundll32.exe shell32.dll,Control_RunDLL telephon.cpl,,2



Date and Time
rundll32.exe shell32.dll,Control_RunDLL timedate.cpl



Date and Time Additional Clocks
rundll32.exe shell32.dll,Control_RunDLL timedate.cpl,,1


Action Center
rundll32.exe shell32.dll,Control_RunDLL wscui.cpl



Unplug/Eject Hardware
RunDll32.exe shell32.dll,Control_RunDLL hotplug.dll


Internet Explorer Specific Commands



Delete Temporary Internet Files:
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8



Delete Cookies:
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2



Delete History:
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1



Delete Form Data:
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 16



Delete Passwords:
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 32



Delete All:
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255



Delete All + files and settings stored by Add-ons:
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351

Miscellaneous Variables

Windows Directory
%WINDIR%
%SYSTEMROOT%



Hard Drive That Contains OS
%HOMEDRIVE%



Users Home Directory
%HOMEPATH%
%USERPROFILE%



Default Temporary Directory
%TEMP%
%TMP%



Program Files
%PROGRAMFILES%



Current Users Application Data Directory
%APPDATA%



อ้างอิงจาก http://www.osattack.com/


แล้วเมื่อไร ที่เราต้องการดู drive all ในเครื่อง ใช้คำสั่ง    wmic logicaldisk  get  name , volumename


ถ้าต้องการเปิด ไปที่ patch ต่างๆ โดยใช้ explorer.exe ตามด้วย argument นะ เช่น


explorer.exe shell:Personal



Windows 7 Only
shell:Libraries
shell:MusicLibrary
shell:VideosLibrary
shell:OtherUsersFolder
shell:Device Metadata Store
shell:PublicSuggestedLocations
shell:DocumentsLibrary
shell:User Pinned
shell:UsersLibrariesFolder
shell:PicturesLibrary
shell:ImplicitAppShortcuts
shell:Ringtones
shell:CommonRingtones

Windows Vista & 7
shell:Common Programs
shell:GameTasks
shell:UserProfiles
shell:MyComputerFolder
shell:SyncSetupFolder
shell:DpapiKeys
shell:SamplePlaylists
shell:Favorites
shell:My Video
shell:SearchHomeFolder
shell:System
shell:CommonVideo
shell:SyncResultsFolder
shell:LocalizedResourcesDir
shell:Cookies
shell:Original Images
shell:CommonMusic
shell:My Pictures
shell:Cache
shell:Downloads
shell:CommonDownloads
shell:AppData
shell:SyncCenterFolder
shell:My Music
shell:ConflictFolder
shell:SavedGames
shell:InternetFolder
shell:Quick Launch
shell:SystemCertificates
shell:Contacts
shell:TreePropertiesFolder
shell:Profile
shell:Start Menu
shell:Common AppData
shell:PhotoAlbums
shell:ConnectionsFolder
shell:Administrative Tools
shell:PrintersFolder
shell:Default Gadgets
shell:ProgramFilesX86
shell:Searches
shell:Common Startup
shell:ControlPanelFolder
shell:SampleVideos
shell:SendTo
shell:ResourceDir
shell:ProgramFiles
shell:CredentialManager
shell:PrintHood
shell:MAPIFolder
shell:CD Burning
shell:AppUpdatesFolder
shell:Common Start Menu
shell:LocalAppDataLow
shell:Templates
shell:Gadgets
shell:Programs
shell:Recent
shell:SampleMusic
shell:Desktop
shell:CommonPictures
shell:RecycleBinFolder
shell:CryptoKeys
shell:Common Templates
shell:Startup
shell:Links
shell:OEM Links
shell:SamplePictures
shell:Common Desktop
shell:NetHood
shell:Games
shell:Common Administrative Tools
shell:NetworkPlacesFolder
shell:SystemX86
shell:History
shell:AddNewProgramsFolder
shell:Playlists
shell:ProgramFilesCommonX86
shell:PublicGameTasks
shell:ChangeRemoveProgramsFolder
shell:Public
shell:Common Documents
shell:CSCFolder
shell:Local AppData
shell:Windows
shell:UsersFilesFolder
shell:ProgramFilesCommon
shell:Fonts
shell:Personal



ถ้าต้องการ เปิด ไดร์ต่าง ก็ใช้คำสั่ง ตามด้วย ไดร์ที่ต้องการจะเปิด


explorer.exe C:  //กรณีต้องการเปิด ไดร์ C

3 August 2011

Resloving Problem Postfix Dovecot pop3 imap

ตอนติดตั้ง apt-get install dovecot-common dovecot-imapd dovecot-pop3d
----------------------------------------------
........
hostname: Name or service not known
.............................................................

Errors were encountered while processing:
 dovecot-common
 dovecot-imapd
 dovecot-pop3d
E: Sub-process /usr/bin/dpkg returned an error code (1)
-------------------------------------------------------------------------------


ลองตรวจสอบ hostname -f  ถ้ามีข้อความว่า hostname: Name or service not known 


ใช้คำสั่ง hostname  greanjub  (กรณีชื่อ host เป็น greanjub เด้อ)

แล้วลองตรวจสอบ hostname -f  ถ้ามีข้อความว่า greanjub แล้วลอง ติดตั้งอีกครั้งครับ....

16 July 2011

Config vsFTP Customize

เขียน กันลืม บทความดีๆ ที่อยากเก็บไว้อ่านนะครับ^^

เจอปัญหาเลยเขียนไว้อ่าน!!!

การติดตั้ง VsFTP (แบบระบุตัวตน) + SSL
sudo apt-get install vsftpd

แก้ไฟล์
sudo nano /etc/vsftpd.conf


anonymous_enable=no //ทำให้ anonymous user ไม่สามารถใช้งานในระบบได้
local_enable=YES //จะทำให้ user ใน local zone (network วงเดียวกะ server) สามารถ FTP ได้
write_enable=YES //จะทำให้สามารถ upload file ไปที่ server ได้ด้วย
chroot_local_user=YES //จะเป็นการบังคับไม่ให้ผู้ใช้ออกนอกhome directory ของตนเองไปที่ directory ที่มีลำดับชั้นสูงกว่า ใช้ได้เฉพาะในกรณี ไม่ใช้ SSL+VsFTP นะครับ


แก้ปัญหาโดย


chroot_local_user=YES

chroot_list_file=/etc/vsftpd.chroot_list <== เอา comment ออกซะ

touch /etc/vsftpd.chroot_list
nano /etc/vsftpd.chroot_list แก้ไขเอา user ที่ต้องการขังเข้าไปไว้ในนี้



เหตุผล
             chroot_local_user=YES ใช้ได้ผลครับ แต่ใช้ได้เฉพาะกรณี connect เข้าไป server แบบ unsecure
คือ connect ผ่าน port 21 (ใช้ ethereal จับ username , password และ data ได้นะครับ)
 
   
             ถ้า connect ไปยัง FTP server แบบเข้ารหัส (ftp over ssh) โดยใช้ port 22 จะใช้option นี้ไม่
ได้ครับ ต้องทำ chroot environment

เพิ่มเติม
  1. port 21 เป็น control port ใช้รับ-ส่ง username , password กับ client
  2. port 20 เป็น data port ใช้รับ-ส่ง data กับเครื่อง client
  3. ใช้ port 21 กับ 20 ก็ต่อเมื่อ server เราเป็น ftp server แบบ active ftp ซึ่ง ftp server แบบนี้ในโลกเหลืออยู่ไม่มาก ทีไม่มีแมวที่ไหนใช้เพราะ ftp แบบนี้มีข้อเสียเพราะขั้นตอน establish data port จะเริ่มต้นจากทาง server จึงต้อง configre firewall 2 ฝั่ง คือ firewall ฝั่ง server ต้องทำการเปิด port 21 ส่วน firewall ฝั่ง client ต้องทำการเปิด high port ให้server connect เข้ามาได้ซึ่งเป็นการกระทำที่งี่เง่าเกินจะรับได้(แต่มหาวิทยาลัยก็ยังนิยม สอนว่าใช้ 2 port นี้)
  4. ในปัจจุบัน ftp server ส่วนมากเป็น ftp server แบบ passive ftp คือ ใช้ port 21 เป็น control port และ port > 1024 ที่สุ่มขึ้นมาทำเป็น data port โดยการ establish connection ทั้ง control port และ data port จะเริ่มที่ client จึงสะดวกกว่าเดิมมากเพราะการ configure firewall จะทำที่ฝั่ง server อย่างเดียว คือ เปิด port 21 ที่firewall ฝั่ง server อย่างเดียว(ส่วน high port ที่ฝั่ง server ไม่ต้องเปิด เพราะมันจะเห็น data port ที่client เรียกเข้ามาเป็น related port ซึ่งเป็น port ที่ต่อเนื่องจาก connection แรกจึง allow ให้ผ่านได้ ที่ทำงี้ได้เนื่องจาก firewall ในปัจจุบันเป็น statefull firewall)
*ปล. ถ้า ใช้เป็น sftp จะใช้แต่ port 22 เป็นทั้ง control port และ data port
  1. ตั้งแต่ทำงานมายังไม่เคยเห็นคนในที่ทำงานหรือพวกที่มีความรู้เรื่อง network ท่านใดเป็นปลื้มกับการใช้ftp เพียวๆเลยนะครับ ถ้าไม่จำเป็นต้องใช้จริงๆจะไม่ค่อยใช้กัน เพราะว่ามันสามารถใช้โปรแกรมดักเอา username , password , data ได้ ผมจึงไม่เคยใช้ ftp แบบธรรมดาครับ จึงเรียนมาเพื่อทราบ
*ปล. ขอเชิญชวนให้ใช้ ftp over ssh นะครับ เชื่อเถอะครับ ไม่โดน hack อาจจะยังไม่เห็นประโยชน์

อ้างอิงจาก http://ubuntuclub.com/node/234 ขอบคุณที่ให้ความรู้ดีๆๆ นะครับ

8 July 2011

How to Config Apache Customize on Linux

    อันนี้ note ไว้กันลืม ครับ
ถ้าเกิดตอนลง apache2  แล้วเกิดข้อความแจ้งเตือนขึ้นมาดังนี้
-----------------------------------
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

วิธีแก้ไขคือ    1. ให้แก้ไขที่ /etc/host โดยใช้คำสั่ง vi /etc/hosts  แล้วให้ทำดังนี้


127.0.0.1    localhost
127.0.1.1    greanjub
ไปเป็น

127.0.0.1    localhost.local       localhost
127.0.1.1    greanjub.local       greanjub  (ตรงนี้เป็นชื่อเครื่องของเราเด้อ)



                  2. แก้ไขที่  vi /etc/apache2/httpd.conf แล้ว ปกติแล้ว ถ้าลงใหม่ๆ จะไม่มีข้อมูลอะไรเลยให้เพิ่ม 

            ServerName greanjub     (ตรงนี้เป็นชื่อเครื่องของเราเด้อ)

จากนั้นให้ทำการ restart apache2 โดยใช้คำสั่ง  /etc/init.d/apache2 restart  แค่นี้ก็จะไม่มีข้อความเตือนอีกแล้วครับ เรียบร้อยโรงเรียนไทยเลย ครับวัยล๊วน
-----------------------------------------------------------------------------------------------------------------------------------
-apache web server Hardening (เบื้องต้น)
                   group:: www-data, user:: www-data
                           /var/www   (default DecumentRoot)
                          /etc/apache2 (directory)
                                 conf.d  (sub-directory)
                                           charset  //file config กำหรดค่าตัวอักษรที่ใช้
                                     sercurity  //file config กำหนดค่า security
                                                             ตัวแปรที่สำคัญ
                                                            ServerTokens=Prod
                                                               ServerSignature = off
                                                            TracerEnable=off

                     mods-available (sub-directory) //Full modul
                     mods-enable (sub-directory) //modul บางส่วนของ apache2 $sudo a2enmod
                                           ถ้าต้องการ enable module ที่ต้องการ
                                  sudo a2enmod ____ <-(proxy cach)



                   site-available (sub-directory) //full site ถ้าต้องการเว็บอีกเว็บที่มากว่าเว็บเดิม ก็
                                                                         copy default ไปเป็นอีกชื่อหนึ่ง
                   site-enable    (sub-dircetory) // กรณีต้องการ สร้าง site เพิ่ม   $ sudo a2ensite
                                        ถ้าต้องการเปิด เว็บไซด์ ที่มากขึ้น
                                     sudo a2ensite ชื่อ------

  envvers    //file  กำหนดค่าตัวแปรระบบให้ apache
  magic
  apache2.conf    //file config
  httpd.conf    //file config แต่ ใน Ubuntu ไม่ใช่
// linux อื่นๆ ใช้ file นี้ file เดี๋ยวเก็บค่า config ทุกอย่าง
  ports.conf   // file config ใช้กำหนด port  number.

------------------------------------------------------------------------------------------------------
ถ้าต้องการ check PID
cat /var/run/apache2.pid
---------------------------------------------------------------------------------------------------------

หากต้องการ WebServer ของเรา ไม่ให้แสดง List Directory เมื่อ User เปิด index of ของเรา
ไปที่
nano /etc/apache2/site-available/default

...............................................
<Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews (ให้ลบ Indexes  ทิ้งไปเด้อ)
                AllowOverride None
                Order allow,deny
                allow from all
</Directory>

...............
......ทำการ Save (Ctrl+O Enter) แล้ว Exit (Ctrl+X)   ทำการ Restart Apache โดย /etc/init.d/apache2 restart
--------------------------------------------------------------------------------------------------------

อยากตั้งค่าให้เว็บแสดงผลเป็นภาษาไทยโดย Auto แบบ UTF-8
ไปที่  nano /etc/apache2/conf.d/charset
ให้ เพิ่ม AddDefaultCharset UTF-8 ลงไป นะครับ^^
ทำการ Save (Ctrl+O Enter) แล้ว Exit (Ctrl+X)   ทำการ Restart Apache โดย /etc/init.d/apache2 restart
--------------------------------------------------------------------------------------------------------

การทำ Virtual Host ในเครื่อง windows นะครับ ^^

ทำความเข้าใจนิดหน่อย ว่าเป็นการทำ ให้ 1 IP มีหลาย Domain Name นะครับ

1.  เปิด C:\WINDOWS\system32\drivers\etc\hosts ใน Notepad โดยปกติ
        127.0.0.1   localhost
127.0.0.1 web.local (เพิ่มเข้าไปเท่าที่ต้องการเลยครับ)
127.0.0.1   web2.local
2. เปิด C:\AppServ\Apache2.2\conf\httpd.conf ทำการแก้ไขไฟล์โดย เอา # ออกครับ
#Virtual hosts
Include conf/extra/httpd-vhosts.conf

แล้วทำการ Save file
3.เปิด C:\AppServ\Apache2.2\conf\extra\httpd-vhosts.conf
------------------------------------------------------------------------
# You may use the command line option '-S' to verify your virtual host # configuration.
 

<Directory c:/AppServ/www>  
Order Deny,Allow  
Allow from all  
</Directory>  
<Directory d:/>  
Order Deny,Allow
Allow from all
</Directory>   
ถ้าเราไม่กำหนด ในข้างต้น เวลาเราเรียก ชื่อ Virtual host แล้วจะมีข้อความ ที่ Browser ครับ
Forbidden
You don't have permission to access /index.php on this server.



# Use name-based virtual hosting. 
#
  NameVirtualHost *:8088 (เปิด Port ที่ให้บริการครับ)  

# # VirtualHost example: 
# Almost any Apache directive may go into a VirtualHost container. 
# The first VirtualHost section is used for all requests that do not 
# match a ServerName or ServerAlias in any <VirtualHost> block. 
#
  <VirtualHost *:8088>
DocumentRoot c:/AppServ/www
ServerName localhost 
</VirtualHost>
<VirtualHost *:8088>
DocumentRoot c:/AppServ/www/21072011_5151001277
ServerName web.local (ชื่อ host URL)
</VirtualHost>
<VirtualHost *:8088>
DocumentRoot d:/21072011_5151001277
ServerName web1.local (ชื่อ host URL)
</VirtualHost>

จากกันให้ Save File

4. ให้ ทำการ Restart Service Apache  โดย จะ Restart คอมพิวเตอร์ก็ได้นะครับ อาจเสียเวลานิดหน่อย ถ้าไม่มีเวลาเพราะไม่มีนาฬิกาข้อมือใส่ก็ไม่เป็นไร ไปที่ Run แล้วพิมพ์ Cmd ให้พิมพ์
         C:/>net stop apach2.2
         C:/>net start apach2.2

5. น่าจะไม่มีปัญหาอะไร นะครับ น่าเกิดมันไม่ มี Error นะครับ   เรามาทดสอบโดยการเปิด Browser แล้วพิมพ์ ชื่อ Virtual host ที่ได้กำหนดไว้ นะครับ แค่นี้ก็เสร็จแล้วครับ สู้ๆๆ
----------------------------------------------------------------------------------------------

6 July 2011

Command Dos Windows Total jub

เนื่องจากกลัว ลืมแหละ อยากเขียนไว้เป็น กุดสะโลบาย ด้วยเลย note ไว้ครับ อิอิ
-------------------------------------------------------------------------------------------------------------
การเพิ่ม User (Username และ password)


reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList" /v greanjub /t REG_DWORD /d 0 /f
net user greanjub hacker55 /add
net localgroup Administrators greanjub /add


หมายเรียก : greanjub  คือชื่อ Username ที่เพิ่ม , hacker55 เป็น password ที่ใช้ , REG_DWORD /d 0 เป็น การซ่อน User ไม่ใช้แสดงออกมาบนหน้าจอ เด้อครับ อิอิ
-------------------------------------------------------------------------------------------------------------

การ Set Enable บัญชี Administrator

net user administrator /active:yes

-------------------------------------------------------------------------------------------------------------

การ Enable Remote Desktop

REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f

-------------------------------------------------------------------------------------------------------------

Show list file shared on windows

net view \\ip-target\
-------------------------------------------------------------------------------------------------------------
การเปิด Telnet


sc config tlntsvr start= auto
netsh firewall set allowedprogram %windir%\system32\tlntsvr.exe iexplorer enable
sc start tlntsvr

-------------------------------------------------------------------------------------------------------------
ปิดการ tools scanning lan ขั้นแรก ง่าย

net config server /hidden:yes

-------------------------------------------------------------------------------------------------------------
test Route  (ปัจจุบัน จะใช้ tools ช่วยมากกว่า)

tracert ip-target

-------------------------------------------------------------------------------------------------------------
เปิด - ปิด Service  program

net start/stop  ตามด้วยชื่อ Service

-------------------------------------------------------------------------------------------------------------