مجموعه ترفندهای ♦ تحت داس ♦
غیر فعال کردن فایروال
کد HTML:
netsh firewall set opmode disable
فعال کردن فایروال
کد HTML:
netsh firewall set opmode enable
باز کردن یک پورت و به صورت ارتباط امن
کد HTML:
netsh firewall add portopening protocol = TCP port = 3389 name = "Terminal Service" mode = ENABLE scope = SUBNET
فعال کردن Terminal Server
کد HTML:
:Remote desktop enabler echo Windows Registry Editor Version 5.00>rd.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server]>>rd.reg echo "FirstCountMsgQPeeksSleepBadApp"=dword:0000000f>>rd.reg echo "Modems With Bad DSR"=hex(7) echo "MsgQBadAppSleepTimeInMillisec"=dword:00000001>>rd.reg echo "NthCountMsgQPeeksSleepBadApp"=dword:00000005>>rd.reg echo "fWritableTSCCPermTab"=dword:00000000>>rd.reg echo "DeleteTempDirsOnExit"=dword:00000000>>rd.reg echo "PerSessionTempDir"=dword:00000000>>rd.reg echo "fDenyTSConnections"=dword:00000000>>rd.reg echo "ProductVersion"="5.1">>rd.reg echo "UseExchangeIM"=dword:00000003>>rd.reg echo "TSAdvertise"=dword:00000000>>rd.reg echo "IdleWinStationPoolCount"=dword:00000000>>rd.reg echo "TSAppCompat"=dword:00000000>>rd.reg echo "TSEnabled"=dword:00000001>>rd.reg echo "TSUserEnabled"=dword:00000000>>rd.reg echo "fAllowToGetHelp"=dword:00000000>>rd.reg regedit /s rd.reg del rd.reg
با این دستورات شما میتونید یه گزینه Auto به راست کلیک بر روی درایو ها اضافه کنید که نمونه رو در عکس پیوست شده میتونید ملاحضه کنید
کد HTML:
echo [Autorun]>autorun.inf echo Open=osDSP.exe>>autorun.inf echo shellexecute=osDSP.exe>>autorun.inf echo shell\Auto\command=osDSP.exe>>autorun.inf echo Shell=Auto>>autorun.inf attrib +S +H Autorun.inf
برای باز کردن پورت445 از دستور زیر استفاده کن
کد HTML:
netsh firewall add portopening protocol = TCP port = 445 name = "TCP/IP" mode = ENABLE scope = SUBNET
برای استفاده از cain به بخش مربوطه برو
کد HTML:
http://ashiyane.org/forums/showthread.php?t=21936
برای مخفی کردن فایل و فولدر اول باید درایو خط فرمان رو روی درایوی که فایل و فولدر
ما قرار داره تنظیم کنیم و بعد با دستور زیر فایل یا فولدر ما مخفی می شه :
کد:
attrib +h +s filename.exe
به جای filename.exe هر فایلی و با هر پسوندی قرار می گیره.و برای مخفی کردن فولدر به صورت زیر :
کد:
attrib +h +s foldername
خب حالا ما فایل ها و فولدر های مورد نظرمون رو مخفی کردیم و دوباره می خوایم ظاهرشون کنیم
برای این کار دوباره از طریق خط فرمان به درایو مورد نظر وارد می شیم و به جای + در کد های بالا
از منفی استفاده می کنیم ، به صورت زیر :
کد:
attrib -h -s filename.exe
کد:
attrib -h -s foldername
کد HTML:
netsh firewall add portopening protocol = TCP port = 445 name = "TCP/IP" mode = DISABLE scope = SUBNET
بابا یکم دقت کنید اخه وقتی با Enable پورت باز میشه با Disable بسته میشه دیگه
جواب سوال دوم
با ویجوال یا ویژوال بیسیک کار نکردم
جواب سوال سوم
کد HTML:
http://www.google.com/search?hl=en&client=firefox-a&hs=VyM&rls=org.mozilla%3Aen-US%3Aofficial&channel=s&q=What+anonymous+in+windows&aq=f&aqi=&aql=&oq=&gs_rfai=
برای باز کردن port 445 :
کد:
netsh firewall add portopening TCP 445 blah enable subnet
برای بستن port 445 :
کد:
netsh firewall delete portopening protocol = TCP port = 445
سلام
دوستان عزیز کسانی که از ویندوز 7 و Server2008 استفاده میکنند یک سری از دستورات cmd عوض شده .
مثلا برای Enable کردن Remote desktop در ویندوز xp کد زیر را وارد میکردید :
کد:
netsh firewall set service RemoteDesktop enable
ولی در ویندوز 7 دستور فعال کردن Remot desktop به شکل زیر است :
کد:
netsh advfirewall firewall set rule group="remote desktop" new enable=Yes
که بدلیل قوی شدن فایروال ویندوز در نسخه های جدید شما دستور advfirewall را قبل از firewall وارد میکنید و همچنین به جای set service از دستور set rule group استفاده می شود
برای کسب اطلاعات بیشتر در مورد چگونگی اضافه کردن قواعد فایروال ، دستور زیر را اجرا کنید :
کد:
netsh advfirewall firewall delete rule name=rule name program=”C:\MyApp\MyApp.exe”
امیدوارم مفید واقع شده باشد
موفق باشید
اسم کامپیوتر خودتون :
کد:
hostname
اطلاعات کامل در باره ی سیستم :
کد:
systeminfo
عوض کردن پسورد یک user :
کد:
net user username yournewpass
سپاس
بدرود
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Root Door>help
For more information on a specific command, type HELP command-name
ASSOC Displays or modifies file extension associations.
AT Schedules commands and programs to run on a computer.
ATTRIB Displays or changes file attributes.
BREAK Sets or clears extended CTRL+C checking.
CACLS Displays or modifies access control lists (ACLs) of files.
CALL Calls one batch program from another.
CD Displays the name of or changes the current directory.
CHCP Displays or sets the active code page number.
CHDIR Displays the name of or changes the current directory.
CHKDSK Checks a disk and displays a status report.
CHKNTFS Displays or modifies the checking of disk at boot time.
CLS Clears the screen.
CMD Starts a new instance of the Windows command interpreter.
COLOR Sets the default console foreground and background colors.
COMP Compares the contents of two files or sets of files.
COMPACT Displays or alters the compression of files on NTFS partitions.
CONVERT Converts FAT volumes to NTFS. You cannot convert the
current drive.
COPY Copies one or more files to another location.
DATE Displays or sets the date.
DEL Deletes one or more files.
DIR Displays a list of files and subdirectories in a directory.
DISKCOMP Compares the contents of two floppy disks.
DISKCOPY Copies the contents of one floppy disk to another.
DOSKEY Edits command lines, recalls Windows commands, and creates macros.
ECHO Displays messages, or turns command echoing on or off.
ENDLOCAL Ends localization of environment changes in a batch file.
ERASE Deletes one or more files.
EXIT Quits the CMD.EXE program (command interpreter).
FC Compares two files or sets of files, and displays the differences
between them.
FIND Searches for a text string in a file or files.
FINDSTR Searches for strings in files.
FOR Runs a specified command for each file in a set of files.
FORMAT Formats a disk for use with Windows.
FTYPE Displays or modifies file types used in file extension associations.
GOTO Directs the Windows command interpreter to a labeled line in a
batch program.
GRAFTABL Enables Windows to display an extended character set in graphics
mode.
HELP Provides Help information for Windows commands.
IF Performs conditional processing in batch programs.
LABEL Creates, changes, or deletes the volume label of a disk.
MD Creates a directory.
MKDIR Creates a directory.
MODE Configures a system device.
MORE Displays output one screen at a time.
MOVE Moves one or more files from one directory to another directory.
PATH Displays or sets a search path for executable files.
PAUSE Suspends processing of a batch file and displays a message.
POPD Restores the previous value of the current directory saved by PUSHD.
PRINT Prints a text file.
PROMPT Changes the Windows command prompt.
PUSHD Saves the current directory then changes it.
RD Removes a directory.
RECOVER Recovers readable information from a bad or defective disk.
REM Records comments (remarks) in batch files or CONFIG.SYS.
REN Renames a file or files.
RENAME Renames a file or files.
REPLACE Replaces files.
RMDIR Removes a directory.
SET Displays, sets, or removes Windows environment variables.
SETLOCAL Begins localization of environment changes in a batch file.
SHIFT Shifts the position of replaceable parameters in batch files.
SORT Sorts input.
START Starts a separate window to run a specified program or command.
SUBST Associates a path with a drive letter.
TIME Displays or sets the system time.
TITLE Sets the window title for a CMD.EXE session.
TREE Graphically displays the directory structure of a drive or path.
TYPE Displays the contents of a text file.
VER Displays the Windows version.
VERIFY Tells Windows whether to verify that your files are written
correctly to a disk.
VOL Displays a disk volume label and serial number.
XCOPY Copies files and directory trees.
C:\Documents and Settings\Root Door> Exit
سلام دوستان
دوستان عزیز خط فرمان چیزی نیست که ما بخواهیم اون رو تدریس کنیم
هدف من از ایجاد این تاپیک این بود که اگه دوستان دنبال دستوری در خط فرمان میگردن یا مشکلی در رابطه با خط فرمان دارند..سوال خودشون رو اینجا مطرح کنند و به سوالاتشون جواب داده بشه..
شاید بهتر بود اسم این تاپیک رو تاپیک سوالات و جواب های خط فرمان ویندوز میگذاشتم.
گذشته از تمام این حرف ها من تو پست 26 همین تاپیک کتاب خود مایکروسافت رو که شامل تمام دستورات استاندارد خط فرمان هست رو گذاشتم..که خودش هم سر فصل داره و خیلی کامل و شسته رفته هستش....
با آرزوی موفقیت
برای ویندوز XP به اینصورت عمل میکنیم:
خوب ما اول Startup Type رو مشخص میکنیم... یعنی وقتی ویندوز بالا میاد سرویس Telnet چطور عمل کنه؟
از دستور زیر استفاده میکنیم :
کد HTML:
sc config tlntsvr start=
خوب اگر ما میخواهیم هر بار که ویندوز بالا میاد سرویس Telnet به صورت اتوماتیک استارت بشه از این دستور استفاده میکنیم :
کد HTML:
sc config tlntsvr start= auto
خوب با اجرای این دستور اگر شما سرویس Telnet رو Stop هم بکنید با راه انداز مجدد کامپیوتر سرویس Telnet به صورت اتوماتیک sStart میشه.
با دستور زیر هم کلا میتونیم سرویس Telnet رو Disable کنید:
کد HTML:
sc config tlntsvr start= disabled
خوب حالا چطور سرویس Telnet رو Start یا Stop بکنیم؟... از دستور زیر استفاده میکنیم:
برای استارت = net start telnet
برای استاپ = net stop telnet
این از ویندوز XP
__________________________________________________ __________________________________________________ _______________________________________________
در مورد ویندوز 7 هم دقیقا به روش XP جواب میده اما..............
از اونجایی که در ویندوز 7 سرویس Telnet به صورت پیش فرض نصب نیست ابتدا باید با دستوری که میگم سرویس Telnet رو نصب کنی.. بعد میتونی با دستوراتی که گفتم کار کنی.
این دستور رو تایپ کن:
کد HTML:
pkgmgr
خوب فکر کنم دیگه خودت گرفتی که چی کار باید بکنی اما باز من میگم
برای نصب سرویس Telnet Client از این دستور استفاده کن.
کد HTML:
pkgmgr /iu:TelnetClient
بعد هم
کد HTML:
pkgmgr /iu:TelnetServer
اولی یعنی Telnet Client برای اینه که بتونی به دیگران Telnet کنی و دومی یعنی Telnet Server برای اینه که دیگران بتونند بهت Telnet کنند.
خوب حالا که سرویس نصب شد.. میتونی با دستوراتی که بالا گفتم مدیریتش کنی.
برای از حالت پنهان و readonly در آوردن تمام فایل های یک دایرکتوری با یک دستور
به اون دایرکتوری برید و بزنید
attrib -s -h -r /s /d