Sponsored Content
Top Forums Shell Programming and Scripting Expect script that simulates a SSH brute force attack Post 302913218 by ph0enix on Thursday 14th of August 2014 02:05:55 PM
Old 08-14-2014
Quote:
Originally Posted by in2nix4life
The following will read a file line-by-line. Replace "users.txt" with the name and path to your file.

Code:
#!/usr/bin/expect -f
#

set fh [ open "users.txt" r]

set fileData [read $fh]

close $fh

set data [split $fileData "\n"]
foreach line $data {
    puts $line
}

Thank you! It works perfectly! Smilie
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Apache brute force attack

Hi, I'm trying find out if there is a way to stop a brute force attack on a Webmail site. I'm trying to setup a webmail access, but I would like to prevent too many invalid logins from the same IP. I've looked into Snort, but I was wondering if there was an application level firewall that can... (1 Reply)
Discussion started by: nitin
1 Replies

2. UNIX for Advanced & Expert Users

Brute force SMTP attack right now *help*

Im currently experiancing a brute force attack on my server Nov 26 15:27:04 ws096 saslauthd: do_auth : auth failure: Nov 26 15:27:13 ws096 saslauthd: do_auth : auth failure: Nov 26 15:27:22 ws096 saslauthd: do_auth : auth failure: Nov 26 15:27:29 ws096... (4 Replies)
Discussion started by: mcraul
4 Replies

3. Shell Programming and Scripting

Expect script to ssh into MMI

Guys, I know this is tricky.. I'm trying to write a script to pull info from a MMI device. Following script logins into the server and then changes to super user. Opens MMI session and then exits out. I need to run the command under the MMI session "dsp_alarm_span all" Is there any other way to... (2 Replies)
Discussion started by: miltonrods
2 Replies

4. Shell Programming and Scripting

SSH Expect Script

Ok, i don't know if anyone else here have had to deal with something like this before, but here's my situation. I have about 1000+ servers I need to log into to do something. What i need to do is to log into each server, go to a certain directory on each of the servers, copy the files that... (3 Replies)
Discussion started by: SkySmart
3 Replies

5. Shell Programming and Scripting

Expect Script to Automate SSH

How would I write an expect script to automate ssh and what file extention do expect files use? (11 Replies)
Discussion started by: Prodiga1
11 Replies

6. Shell Programming and Scripting

Script using SSH with expect command

Hi all, I want to connect to some host with "ssh". I have googled and got some commands of "expect" and "spawn". I was not aware of these commands and tried below script. $ cat auto.sh set host xx.xx.xx.xx set password abcd@1234 set user root spawn ssh $user@$host expect "*?assword:*"... (4 Replies)
Discussion started by: divya bandipotu
4 Replies

7. Shell Programming and Scripting

Passing Password to SSH without using expect in a Script

How can I pass password in SSH command without using expect in a shell program. I don't have expect installed on my Solaris server. #!/bin/bash ssh user@hotname (how to supply pass in script?:wall:) Experts please help its very urgent. Shrawan Kumar Sahu (4 Replies)
Discussion started by: ss135r
4 Replies

8. Cybersecurity

DDoS and brute force attack

How to protect DDoS and brute force attack. I want to secure my server and block attacker. (1 Reply)
Discussion started by: romanepo
1 Replies

9. Shell Programming and Scripting

SFTP or scp with password in a batch script without using SSH keys and expect script

Dear All, I have a requirement where I have to SFTP or SCP a file in a batch script. Unfortunately, the destination server setup is such that it doesn't allow for shell command line login. So, I am not able to set up SSH keys. My source server is having issues with Expect. So, unable to use... (5 Replies)
Discussion started by: ss112233
5 Replies
ffcfstress(1)						      General Commands Manual						     ffcfstress(1)

NAME
ffcfstress - constant force stress test for force-feedback devices SYNOPSIS
ffcfstress [-d <device>] [-u <update rate>] [-f <frequency>] [-a <amplitude>] [-s <strength>] [-x <axis>] [-A] [-o] DESCRIPTION
ffcfstress stress tests constant non-enveloped forces on a force feedback device. It simulates a moving spring force by applying a fre- quently updated constant force effect. Beware, the stress test may damage your device! OPTIONS
At least one option is required. -d <device> The device to test (by default /dev/input/event0). -u <update rate> The update rate in Hz (25 by default). -f <frequency> The spring center motion frequency in Hz (0.1 by default). -a <amplitude> The spring center motion amplitude, between 0.0 and 1.0 (1.0 by default). -s <strength> The spring strength factor (1.0 by default). -x <axis> absolute axis to test (default: 0) [0 = X, 1 = Y, 2 = Z, 3 = RX, 4 = RY, 5 = RZ, 6 = WHEEL] -A switch off auto-centering -o Dummy option, useful when all defaults should be used. SEE ALSO
ffmvforce(1), fftest(1), jstest(1). AUTHOR
ffcfstress was written by Oliver Hamann. This manual page was written by Stephen Kitt <steve@sk2.org>, for the Debian GNU/Linux system (but may be used by others). It was last modified for ffcfstress dated February 15, 2002. ffcfstress March 8, 2009 ffcfstress(1)
All times are GMT -4. The time now is 01:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy