Commonly used to refer to Microsoft DOS, one of the first Operating Systems, but could equally refer to FreeDOS or AmigaDOS. Note: For questions about Denial of Service (DoS / DDoS) attacks please use the denial-of-service tag.
0
votes
2answers
46 views
Prevent scanning of the Apache's /default directory
I have two directories, under /var/www/vhosts: mydomain/ and default/. Files in default directory can be accessed using IP address of our server.
I have checked Apache log and somebody is ...
0
votes
0answers
36 views
mod_evasive doesn't log DOS attacks nor does it send an email
I have enabled mod_evasive module in Apache, and it worked after running test.pl and some other custom script that I have written, but it doesn't log nor send an email every time DOS attack in ...
2
votes
3answers
76 views
How to create a yesterday date in a batch
copy \\server01\E$\LogFiles\IVR\bcR\??120428.* \\LBC\workgroup\cs\ftp\Team\bcR\
copy \\server02\E$\LogFiles\IVR\bcR\??120428.* \\LBC\workgroup\cs\ftp\Team\bcR\
copy ...
4
votes
3answers
127 views
Excessive Outbound DNS Traffic
I have a VPS system which I have had for 3 years on one host without issue. Recently, the host started sending an extreme amount of outbound DNS traffic to 31.193.132.138. Due to the way that Linode ...
0
votes
1answer
98 views
Logging UDP flood DDOS attacks?
How do I log UDP flood DDOS attacks?
Right now I am thinking about detecting if the server is receiving more than X megabytes per second for Y seconds, and then doing trafshow > logs.txt as root ...
1
vote
4answers
184 views
Identifying DOS attack
I'm suspecting that one of my servers is attacked some time ago. My question is how can I identify a DOS or DDOS attack while under attack or after the attack has finished?
0
votes
1answer
265 views
Iptables ratelimit UDP DOS attacks
Well, I've been a victim of Ddos attacks and I really can't figure out how to avoid it. On some machines it works, while on some it doesn't or probably I'm doing it wrong in some way,
Attackers are ...
1
vote
1answer
65 views
How do I get out of FreeDOS and boot the system back up without a hard reboot? [closed]
I was running a diagnostic utility from Broadcom on my network hardware and it ran in FreeDOS. I've never used this before and I am unfamiliar with it. Now I am trying to avoid hitting the power ...
1
vote
2answers
212 views
Fail2Ban on Apache Server to protect against DoS attacks?
I asked a question on the IT security StackExchange about protecting against DoS attacks.
One of the answers was to install Fail2Ban.
I talked to the people that administer the server and they told ...
3
votes
2answers
114 views
Virtualize MS-DOS desktop & copying the HDD verbatim
Here at work, we have one user with some specialized legacy software, the developer of which has gone "belly up"* a long time ago.
When trying to copy the program to other systems (trying to check if ...
2
votes
1answer
79 views
Monitor DoS attack with snmp
Is there any way to monitor DoS attacks with SNMP or any other software which based on Linux and could monitor router / switches and alert when a DoS attack is observed?
0
votes
3answers
133 views
How to calculate the starting address of a partition from MBR
Given a MBR and the structure of MBR/partition table, how can you calculate the size and starting address of each partition?
For clarification let's say I was given this-
Answer: There are ...
0
votes
1answer
89 views
How to issue an rsh command in the background?
How to issue an rsh command to run in the background?
Example:
within a batch file i call
rsh 10.1.1.2 -lroot /etc/rtcinst/myscript.ksh
which runs on a remote unix machine. This script takes a ...
1
vote
2answers
117 views
DOS command for creation date file
I've been wondering, using this dos command
for %a in (MyFile.txt) do set FileDate=%~ta
Is there a way to have the full date from the day to the second?
EDIT:
For now I get :
set ...
0
votes
0answers
112 views
USB DOS boot thumb drive won't boot
I have created a bootable usb thumb drive using the HP USB Disk Storage Format Tool and confirmed that it works as expected on a Dell T5400: I am able to select it from the boot select menu and get to ...
0
votes
2answers
185 views
wsname logfile to a filename using mac address or hostname
I am using wsname to rename workstations as they are deployed.
i have a \logfile switch which changes the default location of the wsname logfile to a folder on the C drive.
I want to change this to a ...
1
vote
4answers
234 views
Dos find command? [closed]
Are there any utility find commands that you can download and use in DOS which match the UNIX find command?
1
vote
2answers
541 views
Windows 2008 folder has lost all permissions, can't be deleted, edited or permissions changed
I was testing a batch file that used the following dos command rmdir test2 /s /q, this command failed part way through and now I seem to have folders that have no permissions. For example, in the ...
0
votes
1answer
480 views
How do I copy stdout and stderr into a log file in Windows XP?
I have a script that I'm running from a command line. I want the stdout and stderr to be displayed on the screen and also to be copied into a logfile with append.
What is the syntax for this ...
0
votes
3answers
699 views
File server share access intermittent/slow/machine unstable: win2k8r2
I have a file server running Win2k8R2 on an older HP DL380G4. It has nothing set up on it other than file sharing. All drivers/firmware/updates installed. The file server is used as a dump for a bunch ...
2
votes
5answers
2k views
FoxPro 2.6 DOS on Windows 7 64-bit
I support a company that has a very old, mission critical, FoxPro for DOS 2.6 (FPD) application.
For variuos reasons the company didn't adapt/migrate their app, which, ironically, has been running ...
0
votes
1answer
266 views
Determining End of Line Delimiter
How do you verify what the delimiter for a file is?
I'm using eclipse to edit a script file on my windows system that I use to deploy on my unix server. The script specifies file names and I'd like ...
1
vote
1answer
221 views
What is the function in Windows similar to Inode in Linux?
Is there any commands which is same as the function Inode in Linux. Any info will be helpful.
0
votes
1answer
85 views
UDP in DOS and Windows
I have two computers, one with Windows and another with FreeDOS. I want to generate UDP packets on the Windows PC and receive and view the contents of the package on a computer with FreeDOS.
0
votes
4answers
97 views
1
vote
1answer
147 views
linux backslash for dos
In linux I can use newlines in commands using the backslash in order to improve readability in shell scripts etc:
ls -l \
--reverse \
--human-readable \
--full-time
Is this possible in ...
2
votes
5answers
631 views
How can I create multiple, numbered copies of a file in Windows?
I have a file named poll001.html, and need to create 100 copies that are named incrementally (i.e poll002.html, poll003.html...etc). I know this is stupid, but it is what boss-man wants. any ...
0
votes
1answer
67 views
Is there a program that will monitor a txt file and print it when ever it is updated automaticly?
Client is using a very old DOS program that I can not get to directly print. I can get it to write out to a txt file though. I know about PrintFile but it will only print the file once and won't print ...
0
votes
2answers
423 views
Windows 7 Custom Environment Variable Disappears
I am trying to set a custom environment variable in Windows 7, which needs to be done programmatically as it must be set on multiple computers.
I have been testing one a single machine, but When I ...
0
votes
1answer
162 views
Windows XP running as OpenSSH server through cygwin. Can I remotely execute MS-DOS commands?
I tried typing cmd or cmd.exe at the bash line which then takes to the DOS shell. But from there I tried executing something like trial.bat which contains some lines to access a series of executable ...
4
votes
4answers
319 views
Checking parameters in a DOS batch file
We have a batch file that takes parameters.
We then read the value of the parameter using %1 for the first parameter.
Question is: How can we check that %1 has a value?
0
votes
2answers
823 views
getting the last two tokens in batch script for command
I have a file name with fullpath and want to get the filename and the parent directory of the file.How can I parse this in batchscript?
e.g
for /f "tokens=4,5 delims=\" %%a in ...
3
votes
10answers
19k views
Windows command prompt: how to get the count of all files in current directory?
What command would you use in cmd.exe to find the number of files in the current directory?
Is there a powershell option here?
Update: I was hoping to avoid dir, as I know there are 10,000+ files in ...
0
votes
2answers
93 views
how to delete all files that begin with 'testcase-' on a windows server?
On a windows server, using a DOS command, how can I delete files in the current directoy that have the pattern like:
testcase-234.html
testcase-2322.html
testcase-12.html
i.e. files that begin ...
0
votes
2answers
888 views
0
votes
8answers
10k views
Finding day of week in batch file? (Windows Server 2008)
I have a process I run from a batch file, and i only want to run it on a certain day of the week.
Is it possible to get the day of week?
All the example I found, somehow rely on "date /t" to return ...
0
votes
2answers
54 views
Print to Local Windows Network Share When Network is Down
I've got an application that sends print jobs to a local print share via a DOS copy:
copy fileToPrint \\myLocalComputerName\sharename
When the network is down it throws an error. However the share ...
1
vote
6answers
229 views
Standardising on a single Windows Scripting Language
I wasn't quite sure whether this would be better on StackOverflow or not, feel free to move it if you think it's more appropriate there.
Anyway on to the question...
The Situation
We currently ...
2
votes
4answers
2k views
How to make Server bootable CD?
I need to upgrade firmware in two RAID controllers on my Dell PowerEdge 1950 server running Win2008 64bit, this is required to be done from DOS because the driver gives me an error " You cannot ...
1
vote
1answer
104 views
How do I change the prompt of Windows commandline permanently?
I use Prompt command to temporarily change the Windows command prompt's inline prefix. So instead of current directory, I choose it to display something like current time and the $ sign.
But when I ...
0
votes
2answers
205 views
Multiple remote DOS sessions on DOSEMU
Is it possible to organize multiple remote DOS sessions on DOSEMU (Ubuntu)? How administrator can control these sessions?
-1
votes
4answers
4k views
How do you create a symbolic (hardlink) in CMD.exe
I need to do this without installing software...
Any ideas?
MSDOS (cmd.exe) on Windows XP
4
votes
5answers
1k views
Is it possible to connect a DOS pc to a windows 2003 domain
We are in the process of upgrading our domain from windows 2000 to windows 2003.
We have a few old DOS machines that need to be able to access a share on a server on the domain. We are using MS Lan ...
1
vote
3answers
508 views
Is it possible to get Samba automatically convert linebreaks in files from dos to unix?
I have a shared over samba directory which i access from my windows development box.
Problem is that when i create and edit files they are saved with dos linebreaks.
Is there any way to configure ...
1
vote
5answers
999 views
SMTP DOS attacks with malformed email addresses
We have the following setup:
Redhat kernel 2.4.16
Sendmail 8.11.6
This is a very old, ~7 years, cobalt RaQ server and is not easily upgradeable. Currently, we are being hit by multiple IP addresses ...
2
votes
9answers
2k views
Best way to keep a MS DOS application alive? (Virtual MS DOS)
I have a good old DOS application which is still required to run. Unfortunately the PC is dying and needs to be replaced. The PC was running Windows 98 and the software was executed in a MS Dos ...
1
vote
1answer
556 views
Flash ROM from USB drive with DOS?
My home server PC has a P4 processor. Windows seems unable to control the processor speed, so the processor heats up and the PC fan is running at full speed all day. The event log says there is a ...
1
vote
4answers
401 views
How long have “find” and “findstr” been in the windows CLI?
(I know this is a slightly silly question, but...)
I've recently been made aware of "find" and "findstr", despite having been doing at least light admin on Windows XP since it came out. I was ...
2
votes
1answer
393 views
Is there a & (BASH) equivalent for DOS Batch files?
I'm thinking not since that violates the principle of batching. So what are my options if I want to launch two apps in windows in one script.
0
votes
7answers
3k views
Copying large file to removable media
Using WindowsXP-Pro, I'm trying to copy a largish file (~28 MB) on to an SD Card.
The copy gets almost completed, when it fails and returns with this error:
Cannot copy <filename> file: ...