1.) Rechne die Zahl in binaer Darstellung in eine Dezimale Darstellung um
0110101011101010b 27370d
2.) Rechne die Zahl in dezimal darstellung in eine Binaerdarstellung um
1321 0000010100101001
3.) Addiere die drei Zahlen schriftlich
63432
+ 60948
+ 19340
-----------------
143720
4.) Subtrahiere die letzten drei Zahlen schriftlich von der ersten schriftlich
29655
- 10521
- 3592
- 6337
-----------------
9205
5.) Rechne die Zahl ins zweier komplement um, mit 8 Bit - und subtrahiere diese zahl von der ersten und rechne das Ergebnis nach dezimal
-109 -17 = -126
10010011 11101111 = 10000010
6.) Multipliziere die zwei Zahlen schriftlich
50877*24106 = 1226440962
7.) Dividiere die zwei Zahlen schriftlich
35320/39754 = 0
8.) Errechne x Logarithmisch mit dem Taschenrechner
40868\^x = 448306750
Rechne die Zahl in IEEE-754 um 9646.062500
global _start
section .data
toSrtArray: db "gasjdhasdjahdsjadjasd", 0x00
toSrtArrayLen: equ \$-toSrtArray
section .text
_start:
mov esi, toSrtArray
loop1:
mov ah, [esi]
cmp ah, 0x00
je loop1end
mov ah, [esi]
mov edi, esi
loop2:
inc edi
mov al, [edi]
cmp al, 0x00
je loop2end
mov al, [edi]
cmp al, ah
jge noexchange
mov [esi], al
mov [edi], ah
noexchange:
mov ah, [esi]
jm
p loop2
loop2end:
inc esi
jmp loop1
loop1end:
mov edx, toSrtArrayLen
mov ecx, toSrtArray
mov ebx, 1
mov eax, 4
int 0x80
mov ebx, 0
mov eax, 1
int 0x80
compile: nasm -f elf32 -g asm20240322.asm link: ld -m elf_i386 -g asm20240322.o -o asm20240322 run: ./asm20240322
global _start
section .data
outstr: db "____________"
outstrlen: equ 0x0C
section .text
_start:
mov eax, 0x00
cpuid
mov esi, outstr
mov [esi], ebx
inc esi
inc esi
inc esi
inc esi
mov [esi], ecx
inc esi
inc esi
inc esi
inc esi
mov [esi], edx
inc esi
inc esi
inc esi
inc esi
mov edx, outstrlen
mov ecx, outstr
mov ebx, 1
mov eax, 4
int 0x80
mov ebx, 0
mov eax, 1
int 0x80
assemble: nasm -f elf32 -g asm20240322cpuid.asm link: ld -m elf_i386 -g asm20240322cpuid.o -o asm20240322cpuid run: ./asm20240322cpuid
david@laptop-peaq:~\$ make -f ma mail/ makefile20240322cpuid matlab/ david@laptop-peaq:~\$ make -f makefile20240322cpuid assemble nasm -f elf32 -g asm20240322cpuid.asm david@laptop-peaq:~\$ make -f makefile20240322cpuid link ld -m elf_i386 -g asm20240322cpuid.o -o asm20240322cpuid david@laptop-peaq:~\$ make -f makefile20240322cpuid run ./asm20240322cpuid GenuntelineIdavid@laptop-peaq:~\$
So, jetzt probiere ich mich an MMX und zwar ohne Abfrage mittels CPUID Befehls. Eigentlich ist MMX ist nicht schwer
Wir brauchen nur die Register MM0 bis MM7
Und wir muessen das irgendwie laden. Leider hat MOVQ bei letzten Mal den Dienst versagt
Wir brauchen noch den Mathematischen Befehl
Ich wuerde sagen, PADD.
Ich weiss, woran das lag, daran fehlten die Klammern - also Klammern sind halt indirekte Addressierung
Und wenn man schreibt,
movq mm0, Addresse
Dann findet statt
Direkte Addressiernug
movq mm0, Addresse
dann ist die Addresse drin. Viel mehr gehoert der Speicherplatz rein.
In dem falle, war einiges von dem Beispiel von mir. Allerdings das mit movq hatte ich uebernommen, deswegen weil ich wollte MMX kennen lernen, das kam nicht von mir. Ich habe das jetzt frei aufgeschrieben und weiss, wo der Fehler ist
Ich wollte MMX kennen lernen. Im Geiste im Gedanken, habe ich MMX jetzt kennen gelernt und ich denke, meist Geist hat MMX sehr genau kennen gelernt. Ich werde weiter fleissig ueben, aber das ist kein Problem.
Ich habe herausgefunden, dass es nicht padd heisst, sondern paddb. Es scheint zu gehen und meine Logik scheint auf zu gehen.
;; Dieses Programm hat auch eine gewisse Eleganz - dabei verhaelt es sich wie versprochen, an einer Stelle allerdings ein wenig interessant, ich sage um so besser, ich sage das deswegen, weil, ich sage mal, es ist wohl die Stelle, wo wir neben bei Intel HEX, Little-Endian oder etwas anderes kennen lernen. Richtig ist es in jedem Fall, das zeigt es
global _start
section .data
summand1: dq 0x0102030405060708
summand2: db '0', '0', '0', '0', '0', '0', '0', '0'
summe: dq 0x0000000000000000
len: equ 8
section .text
_start:
movq mm0, [summand1]
movq mm1, [summand2]
paddb mm0, mm1
movq [summe], mm0
mov edx, len
mov ecx, summe
mov ebx, 1
mov eax, 4
int 0x80
mov ebx, 0
mov eax, 1
int 0x80
david@laptop-peaq:~\$ make -f makefile20240322mmx nasm -f elf32 -g asm20240322mmx.asm david@laptop-peaq:~\$ make -f makefile20240322mmx link ld -m elf_i386 -g asm20240322mmx.o -o asm20240322mmx david@laptop-peaq:~\$ make -f makefile20240322mmx run ./asm20240322mmx 87654321david@laptop-peaq:~\$
Die Ausgabe ist deswegen interessant, weil die Zahlen verkehrt herum erscheinen. Richtig ist es alle male. Ich tippe auf Little-endian Interessant ist das Programm, weil es zum einen eine Addition vollzieht, die spuehrbar vollzogen werden soll. Ohne diese Addition, kommt das Programm zu nicht dem Ergebnis Gleichzeitig wollen wir eine Ausgabe erzeugen, die man lesen kann. dafuer muessten wir Zahlen umrechnen. Es geht auch so. somit haben wir Addition und Ausgabe in einem vollzogen.
#!/bin/bash
if [[ "\$1" == "David" \&\& "\$2" == "Vajda" ]]
then
echo "Das bin ich!"
elif [[ "\$1" == "David Vajda" \&\& -z "\$2" ]]
then
echo "Das bin ich!"
elif [[ "\$1" == "David" \&\& -z "\$2" ]]
then
echo "Das koennte ich sein"
elif [[ "\$1" == "Vajda" \&\& -z "\$2" ]]
then
echo "Das koennte ich sein"
elif [ -n "\$1" ]
then
echo "Das bin ich mit an grosser Wahrscheinlichkeit grenzender Sicherheit nicht ich"
else
echo "Hallo Welt!"
i=0
while [ \$i -lt 10 ]
do
echo "Hallo zum \$((\$i+1))."
i=\$((\$i+1))
done
strns=(Hallo heute haben wir die Variable umbenannt)
strns+=(Sind aber beim Prinzip geblieben)
i=0
while [ \$i -lt 12 ]
do
echo "\${strns[\$i]}"
i=\$((\$i+1))
done
for s in "\${strns[@]}"
do
echo "\$s"
done
l=\$(ls)
for s in \$l
do
echo "\$s"
done
fi
Hallo Welt! Hallo zum 1. Hallo zum 2. Hallo zum 3. Hallo zum 4. Hallo zum 5. Hallo zum 6. Hallo zum 7. Hallo zum 8. Hallo zum 9. Hallo zum 10. Hallo heute haben wir die Variable umbenannt Sind aber beim Prinzip geblieben Hallo heute haben wir die Variable umbenannt Sind aber beim Prinzip geblieben a01.sql a02.sql a03.sql a04.sql a05.sql a06.sql a07.sql a08.sql addressdecodertestbench.c alldo.txt alllinks.sh a.out asm15 asm16 asm20240313.asm asm20240313.o asm20240322 asm20240322.asm asm20240322cpuid asm20240322cpuid.asm asm20240322cpuid.o asm20240322mmx asm20240322mmx.asm asm20240322mmx.o asm20240322.o auswendig20240320a.txt auswendig20240320b.txt auswendig20240320c.txt auswendig20240321a.txt auswendig20240321b.txt auswendig20240321c.txt auswendig20240322a.txt auswendig20240322b.txt auswendig20240322c.txt auswendig20240322d.txt auswendig20240322e.txt automat15 automat15.c bash20240322.out bash20240322.sh Bilder bin20240322.txt binary2 binary2.c binomialkoeffizient.asm cpuid001.asm cpuid001.o davidvajda_dephpbb3.sql debian-12.5.0-amd64-netinst.iso deepsearch1.c deepsearch2 deepsearch2.c doc Dokumente dos-inst Downloads facebookpassword.txt files.lst float.c fsmprogs generatetestbench2 generatetestbench3 generatetestbench4 generatetestbench5 gnu-hello ieee754aufgabe ieee754aufgabe.c ieee754aufgabe.o imgout.txt inst ituenix_dephpbb3a.sql ituenix_dephpbb3b.sql k.jpg mail Makefile makefile20240322cpuid makefile20240322mmx Mars matlab mips32singlecycle2.vhdl mips32singlecycle.vhdl mmx001.asm moerder.txt multdiv.c Musik mysqldata.php names.txt node_modules OEffentlich out.txt password password46.txt pc.txt quine replace.sh savesql.txt save.txt Schreibtisch Screenshot_20240319_055421.png Screenshot_20240319_162029.png Screenshot_20240319_163720.png Screenshot_20240319_163922.png Screenshot_20240319_170825.png Screenshot_20240319_171639.png Screenshot_20240319_183417.png Screenshot_20240319_183434.png Screenshot_20240319_183448.png Screenshot_20240319_183456.png Screenshot_20240319_183504.png Screenshot_20240319_192644.png Screenshot_20240319_200753.png Screenshot_20240320_122854.png Screenshot_20240321_060641.png Screenshot_20240321_060820.png Screenshot_20240322_170446.png Screenshot_20240322_172918.png Screenshot_20240322_175448.png state3 svg test.png.vcd todo2.txt todo.txt Videos VirtualBox VMs Vorlagen wave.ghw work-obj93.cf
Ach, ja, jetzt kommen die Linux UEbungen, Bash-Programmierung, wenn ich das habe, verschluesselung mit gpg.
#!/bin/bash
if [[ "\$1" == "David" \&\& "\$2" == "Vajda" ]]
then
echo "Das bin ich!"
elif [[ "\$1" == "David Vajda" \&\& -z "\$2" ]]
then
echo "Das bin ich!"
elif [[ "\$1" == "David" \&\& -z "\$2" ]]
then
echo "Das koennte ich sein"
elif [[ "\$1" == "Vajda" \&\& -z "\$2" ]]
then
echo "Das koennte ich sein"
elif [ -n "\$1" ]
then
echo "Das bin ich mit an grosser Wahrscheinlichkeit grenzender Sicherheit nicht ich"
else
echo "Hallo Welt!"
i=0
while [ \$i -lt 10 ]
do
echo "Hallo zum \$((\$i+1))."
i=\$((\$i+1))
done
strns=(Hallo heute haben wir die Variable umbenannt)
strns+=(Sind aber beim Prinzip geblieben)
i=0
while [ \$i -lt 12 ]
do
echo "\${strns[\$i]}"
i=\$((\$i+1))
done
for s in "\${strns[@]}"
do
echo "\$s"
done
l=\$(ls)
for s in \$l
do
echo "\$s"
done
fi
Hallo Welt! Hallo zum 1. Hallo zum 2. Hallo zum 3. Hallo zum 4. Hallo zum 5. Hallo zum 6. Hallo zum 7. Hallo zum 8. Hallo zum 9. Hallo zum 10. Hallo heute haben wir die Variable umbenannt Sind aber beim Prinzip geblieben Hallo heute haben wir die Variable umbenannt Sind aber beim Prinzip geblieben a01.sql a02.sql a03.sql a04.sql a05.sql a06.sql a07.sql a08.sql addressdecodertestbench.c alldo.txt alllinks.sh a.out asm15 asm16 asm20240313.asm asm20240313.o asm20240322 asm20240322.asm asm20240322cpuid asm20240322cpuid.asm asm20240322cpuid.o asm20240322mmx asm20240322mmx.asm asm20240322mmx.o asm20240322.o auswendig20240320a.txt auswendig20240320b.txt auswendig20240320c.txt auswendig20240321a.txt auswendig20240321b.txt auswendig20240321c.txt auswendig20240322a.txt auswendig20240322b.txt auswendig20240322c.txt auswendig20240322d.txt auswendig20240322e.txt automat15 automat15.c bash20240322.out bash20240322.sh Bilder bin20240322.txt binary2 binary2.c binomialkoeffizient.asm cpuid001.asm cpuid001.o davidvajda_dephpbb3.sql debian-12.5.0-amd64-netinst.iso deepsearch1.c deepsearch2 deepsearch2.c doc Dokumente dos-inst Downloads facebookpassword.txt files.lst float.c fsmprogs generatetestbench2 generatetestbench3 generatetestbench4 generatetestbench5 gnu-hello ieee754aufgabe ieee754aufgabe.c ieee754aufgabe.o imgout.txt inst ituenix_dephpbb3a.sql ituenix_dephpbb3b.sql k.jpg mail Makefile makefile20240322cpuid makefile20240322mmx Mars matlab mips32singlecycle2.vhdl mips32singlecycle.vhdl mmx001.asm moerder.txt multdiv.c Musik mysqldata.php names.txt node_modules OEffentlich out.txt password password46.txt pc.txt quine replace.sh savesql.txt save.txt Schreibtisch Screenshot_20240319_055421.png Screenshot_20240319_162029.png Screenshot_20240319_163720.png Screenshot_20240319_163922.png Screenshot_20240319_170825.png Screenshot_20240319_171639.png Screenshot_20240319_183417.png Screenshot_20240319_183434.png Screenshot_20240319_183448.png Screenshot_20240319_183456.png Screenshot_20240319_183504.png Screenshot_20240319_192644.png Screenshot_20240319_200753.png Screenshot_20240320_122854.png Screenshot_20240321_060641.png Screenshot_20240321_060820.png Screenshot_20240322_170446.png Screenshot_20240322_172918.png Screenshot_20240322_175448.png state3 svg test.png.vcd todo2.txt todo.txt Videos VirtualBox VMs Vorlagen wave.ghw work-obj93.cf
Jetzt kommt die Verschluesselung. Also, gpg - ich habe vergessen was zu tun ist, aber ich kann schnell nachgucken.
Also, als, erstes muss man machen
gpg --list-secret-keysUnd damit werden alle schluessel aufgelistet. Mal gucken, was kommt
gpg: "Trust-DB" wird ueberprueft
gpg: marginals needed: 3 completes needed: 1 trust model: pgp
gpg: Tiefe: 0 gueltig: 1 signiert: 0 Vertrauen: 0-, 0q, 0n, 0m, 0f, 1u
/home/david/.gnupg/pubring.kbx
------------------------------
sec rsa3072 2023-11-21 [SC]
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - DIES IST GEHEIM - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx
uid [ ultimativ ] David Vajda (Standard Schluessel auf meinem Peak Laptop) <david@ituenix.de>
ssb rsa3072 2023-11-21 [E]
Jetzt brauchen wir ein generate Full Key. Wir muessen vollen Key generieren
gpg --full-gen-key
Jetzt muessen wir aufpassen, jetzt kommt der Psychodoktor - das ist so - jetzt gebe ich ein passwort - das kriegen sie mit - das wird komplett, so, dass man sagen wuerde, nein, da steckt nichts dahinter
Sie muessen aber, der Psychodok - der taucht in 2000 Jahren auf. In jedem Passwort, auch, wenn sie noch meinen, es sei der Komplette Standard - was bedeutet, dass es jeder verwendet um zu erklaeren, wie es nicht geht, steckt eine geheime Information. UEber ihren Charakter, ihre Persoenlichkeit, ihre Denkstruktur
Unabhaengig, davon, dass der Psychodok vielleicht das Passwort nicht knackt, trotzdem
Sie meinen, die hacker haetten damit etwas erraten
gpg: "Trust-DB" wird ueberprueft
gpg: marginals needed: 3 completes needed: 1 trust model: pgp
gpg: Tiefe: 0 gueltig: 1 signiert: 0 Vertrauen: 0-, 0q, 0n, 0m, 0f, 1u
/home/david/.gnupg/pubring.kbx
------------------------------
sec rsa3072 2023-11-21 [SC]
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - DIES IST GEHEIM - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx
uid [ ultimativ ] David Vajda (Standard Schluessel auf meinem Peak Laptop) <david@ituenix.de>
ssb rsa3072 2023-11-21 [E]
Falsch, da kann man nichts erraten. Aber, wenn ich was falsches sagen, ich weiss nicht, wer was denkt
ich nehme, nichts was normalerweise nimmt
Ich nehme aliajactasunt das waere die eigene moeglichkeit, oder Lampenschirm - angeblich kann man daraus was ablesen, ja bei ir steht eine Lampe auf den Tisch, ich verwende als Beispiel was sie normalerweise im Netz nehmen wuerden.
david@laptop-peaq:~\$ gpg --full-gen-key
gpg (GnuPG) 2.2.40; Copyright (C) 2022 g10 Code GmbH
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Bitte waehlen Sie, welche Art von Schluessel Sie moechten:
(1) RSA und RSA (voreingestellt)
(2) DSA und Elgamal
(3) DSA (nur signieren/beglaubigen)
(4) RSA (nur signieren/beglaubigen)
(14) Vorhandener Schluessel auf der Karte
Ihre Auswahl? 1
RSA-Schluessel koennen zwischen 1024 und 4096 Bit lang sein.
Welche Schluessellaenge wuenschen Sie? (3072)
Die verlangte Schluessellaenge betraegt 3072 Bit
Bitte waehlen Sie, wie lange der Schluessel gueltig bleiben soll.
0 = Schluessel verfaellt nie
<n> = Schluessel verfaellt nach n Tagen
<n>w = Schluessel verfaellt nach n Wochen
<n>m = Schluessel verfaellt nach n Monaten
<n>y = Schluessel verfaellt nach n Jahren
Wie lange bleibt der Schluessel gueltig? (0)
Schluessel verfaellt nie
Ist dies richtig? (j/N) j
GnuPG erstellt eine User-ID, um Ihren Schluessel identifizierbar zu machen.
Ihr Name ("Vorname Nachname"): David Vajda
Email-Adresse: david@ituenix.de
Kommentar: Das ist ein Testschluessel, der jedem bekannt ist
Sie benutzen den Zeichensatz `utf-8'
Sie haben diese User-ID gewaehlt:
"David Vajda (Das ist ein Testschluessel, der jedem bekannt ist) <david@ituenix.de>"
AEndern: (N)ame, (K)ommentar, (E)-Mail oder (F)ertig/(A)bbrechen?
AEndern: (N)ame, (K)ommentar, (E)-Mail oder (F)ertig/(A)bbrechen? F
Wir muessen eine ganze Menge Zufallswerte erzeugen. Sie koennen dies
unterstuetzen, indem Sie z.B. in einem anderen Fenster/Konsole irgendetwas
tippen, die Maus verwenden oder irgendwelche anderen Programme benutzen.
Wir muessen eine ganze Menge Zufallswerte erzeugen. Sie koennen dies
unterstuetzen, indem Sie z.B. in einem anderen Fenster/Konsole irgendetwas
tippen, die Maus verwenden oder irgendwelche anderen Programme benutzen.
gpg: Widerrufzertifikat wurde als '/home/david/.gnupg/openpgp-revocs.d/71CF788AEF29221645B71538976ED1715AB89FC1.rev' gespeichert.
OEffentlichen und geheimen Schluessel erzeugt und signiert.
pub rsa3072 2024-03-22 [SC]
71CF788AEF29221645B71538976ED1715AB89FC1
uid David Vajda (Das ist ein Testschluessel, der jedem bekannt ist) <david@ituenix.de>
sub rsa3072 2024-03-22 [E]
david@laptop-peaq:~\$
Also, der Schluessel heisst, Lampenschirm
Jetzt verschluesseln wir was, wir schreiben einen Text.
Das ist der Klartext:
"Lampenschirm" oder "alia jacta sunt", das ist hier die Frage?
david@laptop-peaq:~\$ gpg --encrypt -a --recipient 71CF788AEF29221645B71538976ED1715AB89FC1 klartext20240322.txt gpg: "Trust-DB" wird ueberprueft gpg: marginals needed: 3 completes needed: 1 trust model: pgp gpg: Tiefe: 0 gueltig: 2 signiert: 0 Vertrauen: 0-, 0q, 0n, 0m, 0f, 2u david@laptop-peaq:~\$
david@laptop-peaq:~\$ ls *.asc klartext20240322.txt.asc david@laptop-peaq:~\$
-----BEGIN PGP MESSAGE----- hQGMA+COSt6Cpww1AQv/eOPzOJW6XZNjr/Czo/xmvBFF9J7XugQp/i30KFsuHAqp JSBM/8QdLLBuWl7VV0kYaZa9QdtwXXi+x9EDvg3RF+YJdFqiO1t2ytmYNv+SY0Jr 6s1pWfBdN5YzV3a5hgS52aq9I6GhlFZokQQK2XvKyYUHAIokBsrjiiHwXCO2wOFE AaxkWc7ELY8mBBaTSD4OvjjWq/I3RJMW28/DWpPM25Oqvj1yvmTcBQSU2GujBHkC VrQJfnPRt2N1g9968wbBalssExGSu9u2rlvmPnu1fjfehU9UQcDiVpjjdZIICfhG kO08C8Nxcfqzmbg2OCAek1D/61B9TjhiEGPfyDp/K7eWfgtRcyY+t8+oX8KNTfXt bHrWXmcbVEYygjbeIXY09LDAFCeHGHP/GPVrmAYXVJzjKIIPk8hCcnD0/nWVRZ0h CVXlsfX01Z1DcQpxMMAH3jmL/lRfYLPHEh3ZH7WvLhQmYqW+zHbUaWP9KeVBWQrR dpDKy+BsRTxLvHLbUTsF0o0Bcn1Xlz5vu6QsrxfdzjuHSOaK2Dyja7RiTaIV7eB2 4GNX8Fhp/QYEmGdCawVvjguag/N34TBDOXzg0vhBnR2dkTTxBME0Fgyvx+40diWN jKWkbRcz29DyoHZ/HiEe9AVYBv4i+eRa0EO+6wXOJANS4r3y96iw1axRme9qLhES CxVy4WLNqWranlJHDug= =XDf3 -----END PGP MESSAGE-----
Jetzt muesse wir aber die Meldung umbennen
mv klartext20240322.txt.asc encoded20240322.txt.ascdas muss encrypted heissen, nicht encoded - big error. Encoded ist wenn sie was kodiert. Ich diskutiere nicht jetzt nicht. Encrypted. Und das muss nicht mv heissen, nebenbei, sondern - cp - weil sonst ist das Original weg. das ist nicht gut, auch in der Realitaet. Daran wird es nachher Probleme geben.
das muss encrypted heissen, nicht encoded - big error. Encoded ist wenn sie was kodiert. Ich diskutiere nicht jetzt nicht. Encrypted. Und das muss nicht mv heissen, nebenbei, sondern - cp - weil sonst ist das Original weg. das ist nicht gut, auch in der Realitaet. Daran wird es nachher Probleme geben.
david@laptop-peaq:~\$ cp klartext20240322.txt.asc encoded20240322.txt.asc
david@laptop-peaq:~\$ gpg --decrypt --output decrypted20240322.txt encoded20240322.txt.asc
gpg: verschluesselt mit 3072-Bit RSA Schluessel, ID E08E4ADE82A70C35, erzeugt 2024-03-22
"David Vajda (Das ist ein Testschluessel, der jedem bekannt ist) <david@ituenix.de>"
david@laptop-peaq:~\$
Die entschluesselte Meldung:
"Lampenschirm" oder "alia jacta sunt", das ist hier die Frage?Ich kann das genauer machen:
"David Vajda (Das ist ein Testschluessel, der jedem bekannt ist) <david@ituenix.de>"
david@laptop-peaq:~\$ cat decrypted20240322.txt
"Lampenschirm" oder "alia jacta sunt", das ist hier die Frage?
david@laptop-peaq:~\$
Damit passt das. Jetzt gibt es Pause. Jetzt mit LVM getestet werden. Aber erst Pause.
Jetzt muss ich das erst auf meine Seite tun und dann kommt LVM anwendung und darauf habe ich gerade keine Lust. Aber ich mache es. Eigentlich ist LVM spannend, aber so gesehen jetzt gerade nicht unbedingt.
root@laptop-peaq:/home/david# pvcreate /dev/sdb1 /dev/sdc1
File descriptor 25 (anon_inode:inotify) leaked on pvcreate invocation. Parent PID 5589: bash
Can't initialize physical volume "/dev/sdb1" of volume group "DUAL_STICK_0001" without -ff
/dev/sdb1: physical volume not initialized.
Can't initialize physical volume "/dev/sdc1" of volume group "DUAL_STICK_0001" without -ff
/dev/sdc1: physical volume not initialized.
root@laptop-peaq:/home/david# fdisk /dev/sdb
sdb sdb1
root@laptop-peaq:/home/david# fdisk /dev/sdb
sdb sdb1
root@laptop-peaq:/home/david# fdisk /dev/sdb
Welcome to fdisk (util-linux 2.38.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help):
Command (m for help): m
Help:
GPT
M enter protective/hybrid MBR
Generic
d delete a partition
F list free unpartitioned space
l list known partition types
n add a new partition
p print the partition table
t change a partition type
v verify the partition table
i print information about a partition
Misc
m print this menu
x extra functionality (experts only)
Script
I load disk layout from sfdisk script file
O dump disk layout to sfdisk script file
Save \& Exit
w write table to disk and exit
q quit without saving changes
Create a new label
g create a new empty GPT partition table
G create a new empty SGI (IRIX) partition table
o create a new empty MBR (DOS) partition table
s create a new empty Sun partition table
Command (m for help): o
Created a new DOS (MBR) disklabel with disk identifier 0x97ae43a2.
The device contains 'gpt' signature and it will be removed by a write command. See fdisk(8) man page and --wipe option for more details.
Command (m for help): m
Help:
DOS (MBR)
a toggle a bootable flag
b edit nested BSD disklabel
c toggle the dos compatibility flag
Generic
d delete a partition
F list free unpartitioned space
l list known partition types
n add a new partition
p print the partition table
t change a partition type
v verify the partition table
i print information about a partition
Misc
m print this menu
u change display/entry units
x extra functionality (experts only)
Script
I load disk layout from sfdisk script file
O dump disk layout to sfdisk script file
Save \& Exit
w write table to disk and exit
q quit without saving changes
Create a new label
g create a new empty GPT partition table
G create a new empty SGI (IRIX) partition table
o create a new empty MBR (DOS) partition table
s create a new empty Sun partition table
Command (m for help): g
Created a new GPT disklabel (GUID: 51C4ADE8-D24C-574E-A188-52EEE3D58D46).
The device contains 'gpt' signature and it will be removed by a write command. See fdisk(8) man page and --wipe option for more details.
Command (m for help): n
Partition number (1-128, default 1):
First sector (2048-60125150, default 2048):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-60125150, default 60123135):
Created a new partition 1 of type 'Linux filesystem' and of size 28,7 GiB.
Partition #1 contains a LVM2_member signature.
Do you want to remove the signature? [Y]es/[N]o: Y
The signature will be removed by a write command.
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
root@laptop-peaq:/home/david# fdisk /dev/sdc
Welcome to fdisk (util-linux 2.38.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): m
Help:
GPT
M enter protective/hybrid MBR
Generic
d delete a partition
F list free unpartitioned space
l list known partition types
n add a new partition
p print the partition table
t change a partition type
v verify the partition table
i print information about a partition
Misc
m print this menu
x extra functionality (experts only)
Script
I load disk layout from sfdisk script file
O dump disk layout to sfdisk script file
Save \& Exit
w write table to disk and exit
q quit without saving changes
Create a new label
g create a new empty GPT partition table
G create a new empty SGI (IRIX) partition table
o create a new empty MBR (DOS) partition table
s create a new empty Sun partition table
Command (m for help): g
Created a new GPT disklabel (GUID: 9B4894EA-9D37-5143-8EE1-4026D86E6185).
Command (m for help): n
Partition number (1-128, default 1):
First sector (2048-60125150, default 2048):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-60125150, default 60123135):
Created a new partition 1 of type 'Linux filesystem' and of size 28,7 GiB.
Partition #1 contains a LVM2_member signature.
Do you want to remove the signature? [Y]es/[N]o: Y
The signature will be removed by a write command.
Command (m for help): n
Partition number (2-128, default 2):
No enough free sectors available.
Command (m for help): g
Created a new GPT disklabel (GUID: D3B460F3-F07A-3E4E-9038-90A1578CA746).
Command (m for help): n
Partition number (1-128, default 1):
First sector (2048-60125150, default 2048):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-60125150, default 60123135):
Created a new partition 1 of type 'Linux filesystem' and of size 28,7 GiB.
Partition #1 contains a LVM2_member signature.
Do you want to remove the signature? [Y]es/[N]o: Y
The signature will be removed by a write command.
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
root@laptop-peaq:/home/david# pvcreate /dev/sdb1 /dev/sdc1
File descriptor 25 (anon_inode:inotify) leaked on pvcreate invocation. Parent PID 5589: bash
Physical volume "/dev/sdb1" successfully created.
Physical volume "/dev/sdc1" successfully created.
root@laptop-peaq:/home/david#
root@laptop-peaq:/home/david# vgcreate MYTEST /dev/sdb1 /dev/sdc1
File descriptor 25 (anon_inode:inotify) leaked on vgcreate invocation. Parent PID 5589: bash
Volume group "MYTEST" successfully created
root@laptop-peaq:/home/david# lvcreate -L 26G VOL MYTEST
File descriptor 25 (anon_inode:inotify) leaked on lvcreate invocation. Parent PID 5589: bash
Volume group "VOL" not found
Cannot process volume group VOL
root@laptop-peaq:/home/david# mkfs
mkfs mkfs.cramfs mkfs.ext2 mkfs.ext4 mkfs.minix mkfs.ntfs
mkfs.bfs mkfs.exfat mkfs.ext3 mkfs.fat mkfs.msdos mkfs.vfat
root@laptop-peaq:/home/david# mkfs.ext4 /dev/
Display all 193 possibilities? (y or n)
root@laptop-peaq:/home/david# ls /dev/mapper/
control laptop--peaq--vg-root laptop--peaq--vg-swap_1 sda3_crypt
root@laptop-peaq:/home/david# ls /dev/mapper/
control laptop--peaq--vg-root laptop--peaq--vg-swap_1 sda3_crypt
root@laptop-peaq:/home/david# ls /dev/mapper/
control laptop--peaq--vg-root laptop--peaq--vg-swap_1 sda3_crypt
root@laptop-peaq:/home/david# ls /dev/
Display all 193 possibilities? (y or n)
root@laptop-peaq:/home/david# ls /dev/
acpi_thermal_rel dm-1 hpet loop5 pps0 sdb1 tty tty20 tty33 tty46 tty59 uinput vcsa1 vcsu7
autofs dm-2 hugepages loop6 psaux sdc tty0 tty21 tty34 tty47 tty6 urandom vcsa2 vfio
block dri hwrng loop7 ptmx sdc1 tty1 tty22 tty35 tty48 tty60 userfaultfd vcsa3 vga_arbiter
bsg drm_dp_aux0 initctl loop-control ptp0 sg0 tty10 tty23 tty36 tty49 tty61 v4l vcsa4 vhci
btrfs-control drm_dp_aux1 input mapper pts sg1 tty11 tty24 tty37 tty5 tty62 vboxusb vcsa5 vhost-net
bus fb0 kmsg media0 random sg2 tty12 tty25 tty38 tty50 tty63 vcs vcsa6 vhost-vsock
char fd kvm mei0 rfkill shm tty13 tty26 tty39 tty51 tty7 vcs1 vcsa7 video0
console full laptop-peaq-vg mem rtc snapshot tty14 tty27 tty4 tty52 tty8 vcs2 vcsu video1
core fuse log mqueue rtc0 snd tty15 tty28 tty40 tty53 tty9 vcs3 vcsu1 watchdog
cpu gpiochip0 loop0 net sda stderr tty16 tty29 tty41 tty54 ttyS0 vcs4 vcsu2 watchdog0
cpu_dma_latency gpiochip1 loop1 null sda1 stdin tty17 tty3 tty42 tty55 ttyS1 vcs5 vcsu3 zero
cuse gpiochip2 loop2 nvram sda2 stdout tty18 tty30 tty43 tty56 ttyS2 vcs6 vcsu4
disk gpiochip3 loop3 port sda3 tpm0 tty19 tty31 tty44 tty57 ttyS3 vcs7 vcsu5
dm-0 hidraw0 loop4 ppp sdb tpmrm0 tty2 tty32 tty45 tty58 uhid vcsa vcsu6
root@laptop-peaq:/home/david# ls /dev/dm-
dm-0 dm-1 dm-2
root@laptop-peaq:/home/david# ls /dev/dm-
dm-0 dm-1 dm-2
root@laptop-peaq:/home/david# ls /dev/dm-0
Display all 165 possibilities? (y or n)
root@laptop-peaq:/home/david# ls /dev/dm-2
/dev/dm-2
root@laptop-peaq:/home/david# vgcreate
Display all 165 possibilities? (y or n)
root@laptop-peaq:/home/david# vgcreate MYGRP20240322 /dev/
Display all 193 possibilities? (y or n)
root@laptop-peaq:/home/david# vgcreate MYGRP20240322 /dev/
Display all 193 possibilities? (y or n)
root@laptop-peaq:/home/david# vgcreate MYGRP20240322 /dev/sdb1 /dev/sdc1
File descriptor 25 (anon_inode:inotify) leaked on vgcreate invocation. Parent PID 5589: bash
Physical volume '/dev/sdb1' is already in volume group 'MYTEST'
Unable to add physical volume '/dev/sdb1' to volume group 'MYTEST'
/dev/sdb1: physical volume not initialized.
Physical volume '/dev/sdc1' is already in volume group 'MYTEST'
Unable to add physical volume '/dev/sdc1' to volume group 'MYTEST'
/dev/sdc1: physical volume not initialized.
root@laptop-peaq:/home/david# ls /dev/
Display all 193 possibilities? (y or n)
root@laptop-peaq:/home/david# ls /dev/mapper/
control laptop--peaq--vg-root laptop--peaq--vg-swap_1 sda3_crypt
root@laptop-peaq:/home/david# ls /dev/mapper/
control laptop--peaq--vg-root laptop--peaq--vg-swap_1 sda3_crypt
root@laptop-peaq:/home/david# ls /dev/mapper/
control laptop--peaq--vg-root laptop--peaq--vg-swap_1 sda3_crypt
root@laptop-peaq:/home/david# ls /dev/mapper/
control laptop--peaq--vg-root laptop--peaq--vg-swap_1 sda3_crypt
root@laptop-peaq:/home/david# ls /dev/
Display all 193 possibilities? (y or n)
root@laptop-peaq:/home/david# ls /dev/
acpi_thermal_rel dm-1 hpet loop5 pps0 sdb1 tty tty20 tty33 tty46 tty59 uinput vcsa1 vcsu7
autofs dm-2 hugepages loop6 psaux sdc tty0 tty21 tty34 tty47 tty6 urandom vcsa2 vfio
block dri hwrng loop7 ptmx sdc1 tty1 tty22 tty35 tty48 tty60 userfaultfd vcsa3 vga_arbiter
bsg drm_dp_aux0 initctl loop-control ptp0 sg0 tty10 tty23 tty36 tty49 tty61 v4l vcsa4 vhci
btrfs-control drm_dp_aux1 input mapper pts sg1 tty11 tty24 tty37 tty5 tty62 vboxusb vcsa5 vhost-net
bus fb0 kmsg media0 random sg2 tty12 tty25 tty38 tty50 tty63 vcs vcsa6 vhost-vsock
char fd kvm mei0 rfkill shm tty13 tty26 tty39 tty51 tty7 vcs1 vcsa7 video0
console full laptop-peaq-vg mem rtc snapshot tty14 tty27 tty4 tty52 tty8 vcs2 vcsu video1
core fuse log mqueue rtc0 snd tty15 tty28 tty40 tty53 tty9 vcs3 vcsu1 watchdog
cpu gpiochip0 loop0 net sda stderr tty16 tty29 tty41 tty54 ttyS0 vcs4 vcsu2 watchdog0
cpu_dma_latency gpiochip1 loop1 null sda1 stdin tty17 tty3 tty42 tty55 ttyS1 vcs5 vcsu3 zero
cuse gpiochip2 loop2 nvram sda2 stdout tty18 tty30 tty43 tty56 ttyS2 vcs6 vcsu4
disk gpiochip3 loop3 port sda3 tpm0 tty19 tty31 tty44 tty57 ttyS3 vcs7 vcsu5
dm-0 hidraw0 loop4 ppp sdb tpmrm0 tty2 tty32 tty45 tty58 uhid vcsa vcsu6
root@laptop-peaq:/home/david# ls
a01.sql auswendig20240322c.txt gnu-hello replace.sh
a02.sql auswendig20240322d.txt gpgprotokoll20240322.txt savesql.txt
a03.sql auswendig20240322e.txt ieee754aufgabe save.txt
a04.sql automat15 ieee754aufgabe.c Schreibtisch
a05.sql automat15.c ieee754aufgabe.o Screenshot_20240319_055421.png
a06.sql bash20240322.out imgout.txt Screenshot_20240319_162029.png
a07.sql bash20240322.sh inst Screenshot_20240319_163720.png
a08.sql Bilder ituenix_dephpbb3a.sql Screenshot_20240319_163922.png
addressdecodertestbench.c bin20240322.txt ituenix_dephpbb3b.sql Screenshot_20240319_170825.png
alldo.txt binary2 k.jpg Screenshot_20240319_171639.png
alllinks.sh binary2.c klartext20240322.txt Screenshot_20240319_183417.png
a.out binomialkoeffizient.asm klartext20240322.txt.asc Screenshot_20240319_183434.png
asm15 cpuid001.asm mail Screenshot_20240319_183448.png
asm16 cpuid001.o Makefile Screenshot_20240319_183456.png
asm20240313.asm davidvajda_dephpbb3.sql makefile20240322cpuid Screenshot_20240319_183504.png
asm20240313.o debian-12.5.0-amd64-netinst.iso makefile20240322mmx Screenshot_20240319_192644.png
asm20240322 decrypted20240322.txt Mars Screenshot_20240319_200753.png
asm20240322.asm deepsearch1.c matlab Screenshot_20240320_122854.png
asm20240322cpuid deepsearch2 mips32singlecycle2.vhdl Screenshot_20240321_060641.png
asm20240322cpuid.asm deepsearch2.c mips32singlecycle.vhdl Screenshot_20240321_060820.png
asm20240322cpuid.o doc mmx001.asm Screenshot_20240322_170446.png
asm20240322mmx Dokumente moerder.txt Screenshot_20240322_172918.png
asm20240322mmx.asm dos-inst multdiv.c Screenshot_20240322_175448.png
asm20240322mmx.o Downloads Musik state3
asm20240322.o encoded20240322.txt.asc mysqldata.php svg
auswendig20240320a.txt facebookpassword.txt names.txt test.png.vcd
auswendig20240320b.txt files.lst node_modules todo2.txt
auswendig20240320c.txt float.c OEffentlich todo.txt
auswendig20240321a.txt fsmprogs out.txt Videos
auswendig20240321b.txt generatetestbench2 password 'VirtualBox VMs'
auswendig20240321c.txt generatetestbench3 password46.txt Vorlagen
auswendig20240322a.txt generatetestbench4 pc.txt wave.ghw
auswendig20240322b.txt generatetestbench5 quine work-obj93.cf
root@laptop-peaq:/home/david# ls /dev/
Display all 193 possibilities? (y or n)
root@laptop-peaq:/home/david# ls /dev/
acpi_thermal_rel dm-1 hpet loop5 pps0 sdb1 tty tty20 tty33 tty46 tty59 uinput vcsa1 vcsu7
autofs dm-2 hugepages loop6 psaux sdc tty0 tty21 tty34 tty47 tty6 urandom vcsa2 vfio
block dri hwrng loop7 ptmx sdc1 tty1 tty22 tty35 tty48 tty60 userfaultfd vcsa3 vga_arbiter
bsg drm_dp_aux0 initctl loop-control ptp0 sg0 tty10 tty23 tty36 tty49 tty61 v4l vcsa4 vhci
btrfs-control drm_dp_aux1 input mapper pts sg1 tty11 tty24 tty37 tty5 tty62 vboxusb vcsa5 vhost-net
bus fb0 kmsg media0 random sg2 tty12 tty25 tty38 tty50 tty63 vcs vcsa6 vhost-vsock
char fd kvm mei0 rfkill shm tty13 tty26 tty39 tty51 tty7 vcs1 vcsa7 video0
console full laptop-peaq-vg mem rtc snapshot tty14 tty27 tty4 tty52 tty8 vcs2 vcsu video1
core fuse log mqueue rtc0 snd tty15 tty28 tty40 tty53 tty9 vcs3 vcsu1 watchdog
cpu gpiochip0 loop0 net sda stderr tty16 tty29 tty41 tty54 ttyS0 vcs4 vcsu2 watchdog0
cpu_dma_latency gpiochip1 loop1 null sda1 stdin tty17 tty3 tty42 tty55 ttyS1 vcs5 vcsu3 zero
cuse gpiochip2 loop2 nvram sda2 stdout tty18 tty30 tty43 tty56 ttyS2 vcs6 vcsu4
disk gpiochip3 loop3 port sda3 tpm0 tty19 tty31 tty44 tty57 ttyS3 vcs7 vcsu5
dm-0 hidraw0 loop4 ppp sdb tpmrm0 tty2 tty32 tty45 tty58 uhid vcsa vcsu6
root@laptop-peaq:/home/david#
Display all 4369 possibilities? (y or n)
root@laptop-peaq:/home/david# vgcreate MYGRP20240322 /dev/sdb1 /dev/sdc1
File descriptor 25 (anon_inode:inotify) leaked on vgcreate invocation. Parent PID 5589: bash
Physical volume '/dev/sdb1' is already in volume group 'MYTEST'
Unable to add physical volume '/dev/sdb1' to volume group 'MYTEST'
/dev/sdb1: physical volume not initialized.
Physical volume '/dev/sdc1' is already in volume group 'MYTEST'
Unable to add physical volume '/dev/sdc1' to volume group 'MYTEST'
/dev/sdc1: physical volume not initialized.
root@laptop-peaq:/home/david# ls /dev/mapper/
control laptop--peaq--vg-root laptop--peaq--vg-swap_1 sda3_crypt
root@laptop-peaq:/home/david# ls /dev/mapper/
control laptop--peaq--vg-root laptop--peaq--vg-swap_1 sda3_crypt
root@laptop-peaq:/home/david# ls /dev/mapper/
control laptop--peaq--vg-root laptop--peaq--vg-swap_1 sda3_crypt
root@laptop-peaq:/home/david# ls /dev/dm-
dm-0 dm-1 dm-2
root@laptop-peaq:/home/david# ls /dev/dm-
dm-0 dm-1 dm-2
root@laptop-peaq:/home/david# ls /dev/dm-2
Display all 165 possibilities? (y or n)
root@laptop-peaq:/home/david# ls /dev/mapper/
control laptop--peaq--vg-root laptop--peaq--vg-swap_1 sda3_crypt
root@laptop-peaq:/home/david# ls /dev/mapper/
control laptop--peaq--vg-root laptop--peaq--vg-swap_1 sda3_crypt
root@laptop-peaq:/home/david# ls /dev/mapper/control
Display all 165 possibilities? (y or n)
root@laptop-peaq:/home/david# ls /dev/
acpi_thermal_rel dm-1 hpet loop5 pps0 sdb1 tty tty20 tty33 tty46 tty59 uinput vcsa1 vcsu7
autofs dm-2 hugepages loop6 psaux sdc tty0 tty21 tty34 tty47 tty6 urandom vcsa2 vfio
block dri hwrng loop7 ptmx sdc1 tty1 tty22 tty35 tty48 tty60 userfaultfd vcsa3 vga_arbiter
bsg drm_dp_aux0 initctl loop-control ptp0 sg0 tty10 tty23 tty36 tty49 tty61 v4l vcsa4 vhci
btrfs-control drm_dp_aux1 input mapper pts sg1 tty11 tty24 tty37 tty5 tty62 vboxusb vcsa5 vhost-net
bus fb0 kmsg media0 random sg2 tty12 tty25 tty38 tty50 tty63 vcs vcsa6 vhost-vsock
char fd kvm mei0 rfkill shm tty13 tty26 tty39 tty51 tty7 vcs1 vcsa7 video0
console full laptop-peaq-vg mem rtc snapshot tty14 tty27 tty4 tty52 tty8 vcs2 vcsu video1
core fuse log mqueue rtc0 snd tty15 tty28 tty40 tty53 tty9 vcs3 vcsu1 watchdog
cpu gpiochip0 loop0 net sda stderr tty16 tty29 tty41 tty54 ttyS0 vcs4 vcsu2 watchdog0
cpu_dma_latency gpiochip1 loop1 null sda1 stdin tty17 tty3 tty42 tty55 ttyS1 vcs5 vcsu3 zero
cuse gpiochip2 loop2 nvram sda2 stdout tty18 tty30 tty43 tty56 ttyS2 vcs6 vcsu4
disk gpiochip3 loop3 port sda3 tpm0 tty19 tty31 tty44 tty57 ttyS3 vcs7 vcsu5
dm-0 hidraw0 loop4 ppp sdb tpmrm0 tty2 tty32 tty45 tty58 uhid vcsa vcsu6
root@laptop-peaq:/home/david# lvcreate -L 42G -n VOL GROUP
File descriptor 25 (anon_inode:inotify) leaked on lvcreate invocation. Parent PID 5589: bash
Volume group "GROUP" not found
Cannot process volume group GROUP
root@laptop-peaq:/home/david# lvcreate -L 42G -n VOL TEST
File descriptor 25 (anon_inode:inotify) leaked on lvcreate invocation. Parent PID 5589: bash
Volume group "TEST" not found
Cannot process volume group TEST
root@laptop-peaq:/home/david# vgcreate MYGRP20240322 /dev/sdb1 /dev/sdc1
File descriptor 25 (anon_inode:inotify) leaked on vgcreate invocation. Parent PID 5589: bash
Physical volume '/dev/sdb1' is already in volume group 'MYTEST'
Unable to add physical volume '/dev/sdb1' to volume group 'MYTEST'
/dev/sdb1: physical volume not initialized.
Physical volume '/dev/sdc1' is already in volume group 'MYTEST'
Unable to add physical volume '/dev/sdc1' to volume group 'MYTEST'
/dev/sdc1: physical volume not initialized.
root@laptop-peaq:/home/david# lvcreate -L 42G -n VOL MYTEST
File descriptor 25 (anon_inode:inotify) leaked on lvcreate invocation. Parent PID 5589: bash
Logical volume "VOL" created.
root@laptop-peaq:/home/david# ls /dev/mapper/
control laptop--peaq--vg-root laptop--peaq--vg-swap_1 MYTEST-VOL sda3_crypt
root@laptop-peaq:/home/david# mkfs.ext4 /dev/mapper/MYTEST-VOL
mke2fs 1.47.0 (5-Feb-2023)
Creating filesystem with 11010048 4k blocks and 2752512 inodes
Filesystem UUID: baeb6953-1ad6-4176-9252-b18de71637c8
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624
Allocating group tables: done
Writing inode tables: done
Creating journal (65536 blocks): done
Writing superblocks and filesystem accounting information: done
root@laptop-peaq:/home/david# mount /dev/m
mapper/ media0 mei0 mem mqueue/
root@laptop-peaq:/home/david# mount /dev/
Display all 195 possibilities? (y or n)
root@laptop-peaq:/home/david# mount /dev/m
mapper/ media0 mei0 mem mqueue/
root@laptop-peaq:/home/david# mount /dev/mapper/
control laptop--peaq--vg-root laptop--peaq--vg-swap_1 MYTEST-VOL sda3_crypt
root@laptop-peaq:/home/david# mount /dev/mapper/MYTEST-VOL /mnt
root@laptop-peaq:/home/david#
<?php
session_start ();
?>
<form method="POST" action="./form20240323.php">
<input type="text" name="form20240323a"></input>
<input type="submit">
</form>
<?php
echo session_id ();
setcookie ("form20240323b", "Hallo, ich bin das erste Cookie", time () + 3600);
echo htmlentities (\$_POST ["form20240323a"]) . "<br>n";
echo htmlentities (\$_COOKIE ["form20240323b"]) . "<br>n";
echo htmlentities (\$_COOKIE ["form20240323c"]) . "<br>n";
session_destroy ();
?>
POST http://localhost/mysql20240217/20240324/form20240323.php HTTP/1.1 host: localhost Cookie: form20240323c=Hallo, ich bin 2 Content-Length: 38 Content-Type: application/x-www-form-urlencoded form20240323a=Ich bin das Datum, Nr. 1
Trying ::1... Connected to localhost. Escape character is '\^]'. HTTP/1.1 200 OK Date: Sat, 23 Mar 2024 17:29:41 GMT Server: Apache/2.4.57 (Debian) Set-Cookie: PHPSESSID=jqt36ivv6cl7382n7g5ih6llkq; path=/ Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate Pragma: no-cache Set-Cookie: form20240323b=Hallo%2C%20ich%20bin%20das%20erste%20Cookie; expires=Sat, 23 Mar 2024 18:29:41 GMT; Max-Age=3600 Vary: Accept-Encoding Content-Length: 211 Content-Type: text/html; charset=UTF-8 <form method="POST" action="./form20240323.php"> <input type="text" name="form20240323a"></input> <input type="submit"> </form> jqt36ivv6cl7382n7g5ih6llkqIch bin das Datum, Nr. 1<br> <br> Hallo, ich bin 2<br>
<?php
session_start ();
include ("/home/david/mysqldata.php");
\$db = new PDO ("mysql: host=localhost", \$MYSQL_USER, \$MYSQL_PASSWORD);
\$sql = "CREATE DATABASE mysql20240323" . session_id () . "; ";
\$db->query (\$sql);
\$sql = "USE mysql20240323" . session_id () . "; ";
\$db->query (\$sql);
\$sql = "CREATE TABLE a (x1 INTEGER, x2 INTEGER); CREATE TABLE b (y1 INTEGER, y2 INTEGER); ";
\$db->query (\$sql);
\$sql = "INSERT INTO a (x1, x2) VALUES (0, 0); ";
\$db->query (\$sql);
\$sql = "INSERT INTO a (x1, x2) VALUES (0, 1); INSERT INTO a (x1, x2) VALUES (1, 0); INSERT INTO a (x1, x2) VALUES (1, 1); INSERT INTO b (y1, y2) VALUES (0, 1); INSERT INTO b (y1, y2) VALUES (1, 0); INSERT INTO b (y1, y2) VALUES (2, 7); INSERT INTO a (x1, x2) VALUES (2, 7); ";
\$db->query (\$sql);
\$sql = "SELECT x1, x2 FROM a; ";
\$stmt = \$db->query (\$sql);
while (\$row = \$stmt -> fetch ())
echo \$row [0] . ", " . \$row [1] . ",";
echo "<br>n";
\$sql = "SELECT y1, y2 FROM b; ";
\$stmt = \$db->query (\$sql);
while (\$row = \$stmt -> fetch ())
echo \$row [0] . ", " . \$row [1] . ", ";
echo "<br>n";
\$sql = "SELECT x1, x2, y1, y2 FROM a INNER JOIN b ON a.x1 = b.y1; ";
\$stmt = \$db->query (\$sql);
while (\$row = \$stmt -> fetch ())
echo \$row [0] . ", " . \$row [1] . ", " . \$row [2] . ", " . \$row [3] . "; ";
echo "<br>n";
\$sql = "DROP DATABASE mysql20240323" . session_id () . "; ";
\$db->query (\$sql);
session_destroy ();
?>
0, 0,0, 1,1, 0,1, 1,2, 7,<br> 0, 1, 1, 0, 2, 7, <br> 0, 0, 0, 1; 0, 1, 0, 1; 1, 0, 1, 0; 1, 1, 1, 0; 2, 7, 2, 7; <br>
<?php
session_start ();
include ("/home/david/mysqldata.php");
\$db = new PDO ("mysql: host=localhost", \$MYSQL_USER, \$MYSQL_PASSWORD);
\$sql = "CREATE DATABASE quantity20240323" . session_id () . "; ";
\$db->query (\$sql);
\$sql = "USE quantity20240323" . session_id () . "; ";
\$db->query (\$sql);
\$sql = "CREATE TABLE a (x INTEGER); CREATE TABLE b (x INTEGER); CREATE TABLE c (x INTEGER); ";
\$db->query (\$sql);
for (\$i = 0; \$i < 24; \$i++) {
\$sql = "INSERT INTO a (x) VALUES (" . rand () % 32 . "); ";
\$sql .= "INSERT INTO b (x) VALUES (" . rand () % 64 . "); ";
\$sql .= "INSERT INTO c (x) VALUES (" . rand () % 48 . "); ";
\$db->query (\$sql);
}
\$sql = "SELECT x FROM (SELECT x FROM a UNION SELECT x FROM b) x; ";
\$stmt = \$db->query (\$sql);
while (\$row = \$stmt -> fetch ())
echo \$row [0] . ", ";
echo "<br>n";
\$sql = "SELECT x FROM (SELECT x FROM a UNION SELECT x FROM c) x; ";
\$stmt = \$db->query (\$sql);
while (\$row = \$stmt -> fetch ())
echo \$row [0] . ", ";
echo "<br>n";
\$sql = "SELECT x FROM (SELECT x FROM b UNION SELECT x FROM c) x; ";
\$stmt = \$db->query (\$sql);
while (\$row = \$stmt -> fetch ())
echo \$row [0] . ", ";
echo "<br>n";
\$sql = "SELECT x FROM (SELECT x FROM a INTERSECT SELECT x FROM b) x; ";
\$stmt = \$db->query (\$sql);
while (\$row = \$stmt -> fetch ())
echo \$row [0] . ", ";
echo "<br>n";
\$sql = "SELECT x FROM (SELECT x FROM a INTERSECT SELECT x FROM c) x; ";
\$stmt = \$db->query (\$sql);
while (\$row = \$stmt -> fetch ())
echo \$row [0] . ", ";
echo "<br>n";
\$sql = "SELECT x FROM (SELECT x FROM b INTERSECT SELECT x FROM c) x; ";
\$stmt = \$db->query (\$sql);
while (\$row = \$stmt -> fetch ())
echo \$row [0] . ", ";
echo "<br>n";
\$sql = "SELECT x FROM (
SELECT x FROM (SELECT x FROM a UNION SELECT x FROM b) x
INTERSECT
SELECT x FROM c
) x; ";
\$stmt = \$db->query (\$sql);
while (\$row = \$stmt -> fetch ())
echo \$row [0] . ", ";
echo "<br>n";
\$sql = "SELECT x FROM (
SELECT x FROM (SELECT x FROM a INTERSECT SELECT x FROM c) x
UNION
SELECT x FROM (SELECT x FROM b INTERSECT SELECT x FROM c) x
) x; ";
\$stmt = \$db->query (\$sql);
while (\$row = \$stmt -> fetch ())
echo \$row [0] . ", ";
echo "<br>n";
\$sql = "SELECT x FROM (
SELECT x FROM (SELECT x FROM a UNION SELECT x FROM c) x
INTERSECT
SELECT x FROM b
) x; ";
\$stmt = \$db->query (\$sql);
while (\$row = \$stmt -> fetch ())
echo \$row [0] . ", ";
echo "<br>n";
\$sql = "SELECT x FROM (
SELECT x FROM (SELECT x FROM a INTERSECT SELECT x FROM b) x
UNION
SELECT x FROM (SELECT x FROM c INTERSECT SELECT x FROM c) x
) x; ";
\$stmt = \$db->query (\$sql);
while (\$row = \$stmt -> fetch ())
echo \$row [0] . ", ";
echo "<br>n";
\$sql = "SELECT x FROM (
SELECT x FROM (SELECT x FROM b UNION SELECT x FROM c) x
INTERSECT
SELECT x FROM a
) x; ";
\$stmt = \$db->query (\$sql);
while (\$row = \$stmt -> fetch ())
echo \$row [0] . ", ";
echo "<br>n";
\$sql = "SELECT x FROM (
SELECT x FROM (SELECT x FROM a INTERSECT SELECT x FROM b) x
UNION
SELECT x FROM (SELECT x FROM a INTERSECT SELECT x FROM c) x
) x; ";
\$stmt = \$db->query (\$sql);
while (\$row = \$stmt -> fetch ())
echo \$row [0] . ", ";
echo "<br>n";
\$sql = "DROP DATABASE quantity20240323" . session_id () . "; ";
\$db->query (\$sql);
session_destroy ();
?>
24, 7, 21, 18, 29, 16, 20, 11, 8, 9, 26, 15, 13, 23, 0, 12, 10, 51, 55, 32, 54, 49, 60, 17, 58, 42, 1, 50, 57, 2, 43, <br> 24, 7, 21, 18, 29, 16, 20, 11, 8, 9, 26, 15, 13, 23, 0, 12, 10, 30, 35, 2, 47, 46, 5, 45, 27, 6, 33, 40, 17, 25, <br> 15, 51, 55, 32, 54, 49, 29, 16, 60, 17, 21, 58, 42, 1, 24, 50, 57, 2, 43, 26, 11, 30, 35, 47, 46, 5, 18, 45, 27, 6, 33, 40, 7, 25, <br> 24, 21, 29, 16, 26, 15, <br> 24, 7, 18, 16, 11, 26, <br> 16, 17, 24, 2, 26, <br> 24, 7, 18, 16, 11, 26, 17, 2, <br> 24, 7, 18, 16, 11, 26, 17, 2, <br> 24, 21, 29, 16, 26, 15, 2, 17, <br> 24, 21, 29, 16, 26, 15, 11, 30, 35, 2, 47, 46, 5, 18, 45, 27, 6, 33, 40, 7, 17, 25, <br> 15, 29, 16, 21, 24, 26, 11, 18, 7, <br> 24, 21, 29, 16, 26, 15, 7, 18, 11, <br>
0 0 0 0 0 1
1 0 0 0 1 1
2 0 0 1 0 0
3 0 0 1 1 0
4 0 1 0 0 0
5 0 1 0 1 1
6 0 1 1 0 0
7 0 1 1 1 1
8 1 0 0 0 1
9 1 0 0 1 1
10 1 0 1 0 0
11 1 0 1 1 0
12 1 1 0 0 1
13 1 1 0 1 0
14 1 1 1 0 0
15 1 1 1 1 0
0 0 0 0 0 1
1 0 0 0 1 1
5 0 1 0 1 1
7 0 1 1 1 1
8 1 0 0 0 1
9 1 0 0 1 1
12 1 1 0 0 1
Gruppe 0:
0 0 0 0 0 1
Gruppe 1:
1 0 0 0 1 1
8 1 0 0 0 1
Gruppe 2:
5 0 1 0 1 1
9 1 0 0 1 1
12 1 1 0 0 1
Gruppe 3:
7 0 1 1 1 1
0:1 0 0 0 -
0:8 - 0 0 0
1:5 0 - 0 1
1:9 - 0 0 1
1:9 1 0 0 -
1:12 1 - 0 0
5:7 0 1 - 1
0:1 0 0 0 -
1:9 1 0 0 -
5:7 0 1 - 1
1:5 0 - 0 1
1:12 1 - 0 0
0:8 - 0 0 0
1:9 - 0 0 1
Gruppe 0:
0:1 0 0 0 -
Gruppe 1:
1:9 1 0 0 -
5:7 0 1 - 1
Gruppe 1:
1:5 0 - 0 1
1:12 1 - 0 0
Gruppe 0:
0:8 - 0 0 0
Gruppe 1:
1:9 - 0 0 1
Gruppe 0:
0:1 0 0 0 -
Gruppe 1:
1:9 1 0 0 -
0:1:1:9 - 0 0 -
5:7 0 1 - 1
Gruppe 1:
1:5 0 - 0 1
1:12 1 - 0 0
0:8:1:9 - 0 0 -
0:1:1:9 - 0 0 -
5:7 0 1 - 1
1:5 0 - 0 1
1:12 1 - 0 0
0:8:1:9 - 0 0 -
0:8:1:9 - 0 0 -
0:1:1:9 - 0 0 -
5:7 0 1 - 1
1:5 0 - 0 1
1:12 1 - 0 0
0 1 5 7 8 9 12
0:8:1:9 * * * *
0:1:1:9 * * *
5:7 * *
1:5 * *
1:12 * *
0 1 5 7 8 9 12
0:8:1:9 * * * *
5:7 * *
1:12 * *
0:8:1:9 - 0 0 -
5:7 0 1 - 1
1:12 1 - 0 0
y <= (not x2 and not x1) or
(not x3 and x2 and x0) or
(x3 and not x1 and not x0);
y <= not (
(x2 or x1) and
(x3 or not x2 or not x0) and
(not x3 or x1 or x0)
);
library ieee;
use ieee.std_logic_1164.all;
entity quine20240323 is
port (
x3, x2, x1, x0: in std_logic;
y: out std_logic
);
end;
architecture behaviour of quine20240323 is
begin
y <= (not x2 and not x1) or
(not x3 and x2 and x0) or
(x3 and not x1 and not x0);
end;
library ieee;
use ieee.std_logic_1164.all;
entity quine20240323testbench is
port (
y: out std_logic
);
end;
architecture behaviour of quine20240323testbench is
component quine20240323
port (
x3, x2, x1, x0: in std_logic;
y: out std_logic
);
end component;
signal x3, x2, x1, x0: std_logic;
begin
q: quine20240323 PORT MAP (x3=>x3, x2=>x2, x1=>x1, x0=>x0, y=>y);
x0 <= '0' after 0 ns, '1' after 10 ns, '0' after 20 ns, '1' after 30 ns, '0' after 40 ns, '1' after 50 ns, '0' after 60 ns, '1' after 70 ns, '0' after 80 ns, '1' after 90 ns, '0' after 100 ns, '1' after 110 ns, '0' after 120 ns, '1' after 130 ns, '0' after 140 ns, '1' after 150 ns;
x1 <= '0' after 0 ns, '0' after 10 ns, '1' after 20 ns, '1' after 30 ns, '0' after 40 ns, '0' after 50 ns, '1' after 60 ns, '1' after 70 ns, '0' after 80 ns, '0' after 90 ns, '1' after 100 ns, '1' after 110 ns, '0' after 120 ns, '0' after 130 ns, '1' after 140 ns, '1' after 150 ns;
x2 <= '0' after 0 ns, '0' after 10 ns, '0' after 20 ns, '0' after 30 ns, '1' after 40 ns, '1' after 50 ns, '1' after 60 ns, '1' after 70 ns, '0' after 80 ns, '0' after 90 ns, '0' after 100 ns, '0' after 110 ns, '1' after 120 ns, '1' after 130 ns, '1' after 140 ns, '1' after 150 ns;
x3 <= '0' after 0 ns, '0' after 10 ns, '0' after 20 ns, '0' after 30 ns, '0' after 40 ns, '0' after 50 ns, '0' after 60 ns, '0' after 70 ns, '1' after 80 ns, '1' after 90 ns, '1' after 100 ns, '1' after 110 ns, '1' after 120 ns, '1' after 130 ns, '1' after 140 ns, '1' after 150 ns;
end;
library ieee;
use ieee.std_logic_1164.all;
entity quine20240323 is
port (
x3, x2, x1, x0: in std_logic;
y: out std_logic
);
end;
architecture behaviour of quine20240323 is
begin
y <= (not x2 and not x1) or
(not x3 and x2 and x0) or
(x3 and not x1 and not x0);
end;
library ieee;
use ieee.std_logic_1164.all;
entity quine20240323testbench is
port (
y: out std_logic
);
end;
architecture behaviour of quine20240323testbench is
component quine20240323
port (
x3, x2, x1, x0: in std_logic;
y: out std_logic
);
end component;
signal x3, x2, x1, x0: std_logic;
begin
q: quine20240323 PORT MAP (x3=>x3, x2=>x2, x1=>x1, x0=>x0, y=>y);
x0 <= '0' after 0 ns, '1' after 10 ns, '0' after 20 ns, '1' after 30 ns, '0' after 40 ns, '1' after 50 ns, '0' after 60 ns, '1' after 70 ns, '0' after 80 ns, '1' after 90 ns, '0' after 100 ns, '1' after 110 ns, '0' after 120 ns, '1' after 130 ns, '0' after 140 ns, '1' after 150 ns;
x1 <= '0' after 0 ns, '0' after 10 ns, '1' after 20 ns, '1' after 30 ns, '0' after 40 ns, '0' after 50 ns, '1' after 60 ns, '1' after 70 ns, '0' after 80 ns, '0' after 90 ns, '1' after 100 ns, '1' after 110 ns, '0' after 120 ns, '0' after 130 ns, '1' after 140 ns, '1' after 150 ns;
x2 <= '0' after 0 ns, '0' after 10 ns, '0' after 20 ns, '0' after 30 ns, '1' after 40 ns, '1' after 50 ns, '1' after 60 ns, '1' after 70 ns, '0' after 80 ns, '0' after 90 ns, '0' after 100 ns, '0' after 110 ns, '1' after 120 ns, '1' after 130 ns, '1' after 140 ns, '1' after 150 ns;
x3 <= '0' after 0 ns, '0' after 10 ns, '0' after 20 ns, '0' after 30 ns, '0' after 40 ns, '0' after 50 ns, '0' after 60 ns, '0' after 70 ns, '1' after 80 ns, '1' after 90 ns, '1' after 100 ns, '1' after 110 ns, '1' after 120 ns, '1' after 130 ns, '1' after 140 ns, '1' after 150 ns;
end;