• 1 Post
  • 900 Comments
Joined 11 months ago
cake
Cake day: February 7th, 2025

help-circle



  • Komplett in normalem Deutsch verfasste Beiträge ohne Zangendeutsch gehen aber doch auch einfach, oder bekommt man hier dann Probleme?

    Nein, höchstens scherzhaft im üblichen Stil eines rennenden Knebels (Running Gag). Niemand wird deinen Pfosten (Post) löschen, nur weil er normales Deutsch verwendet. Wir antworten nur mit unserem dummen Witz weil wir ihn witzig finden.

    In einer früheren Inkarnation dieser Community auf einer anderen Platform gab es glaube ich die (üble) Tendenz auf englische oder Englisch-enthaltende Posts mit einer Wort-für-Wort Kommentar-Kette zu antworten “Sprich Deutsch du Huhrensohn”, aber auch das wird hier höchstens noch verballhornt. Da siehst du manchmal noch das “SPRICH”, gefolgt von irgendwelchen anderen Absurditäten.

    Kurz: Pfostiere was du willst, solange es die Regeln einhält und möglichst auf Deutsch oder auf DACH bezogen ist.





  • Dann brauchst du keine regulären Ausdruck, sondern musst Token ersetzen. Da reicht Pattern-Matching.

    Das sagt mir nichts, fürchte ich, aber ich lass mich gerne belehren.

    Bzw. verwenden deine Skripte zu viele hart-codierte Strings.

    Ich geh schon bei jeder Gelegenheit her und isolier alle Folgeabfragen gegen die ursprünglichen Quellen. Die jeweiligen Tabellen werden genau einmal direkt bezeichnet, danach haben sie ein Alias, gerade um so was zu minimieren. (Und weil die ursprünglichen Bezeichnungen beschissen sind, keine Ahnung was die Entwickler da geritten hat. Gleiches Spiel mit den Spalten.)

    Hilft halt nix, wenn ich insgesamt 100 verschiedene Tabellen abfrag, die jeweils irgendwo in Konstanten auszulagern. Das Schema, ja, hätte ich können wenn ich geahnt hätte, dass die das umstrukturieren, wäre aber auch nicht das Problem gewesen.

    Aber dass sie das Namensschema durch die Bank ändern, das war nicht angekündigt oder auch nur zu ahnen.






  • Even if you just tried word combinations of the 1000 most common English words (which for the record, none of those four belong to), you’d have a trillion possible combinations. If you try all the one-, two- and three-word-combinations first because you don’t know how many words it’s gonna be, you’re about a billion guesses in before you even get to the actual solution space. If I mix in words from other languages, or less common words, the combinatorics get even worse, even if you knew what to try in the first place.

    According to a word list generated from OpenSubtitles in 2018, staple would be #18878, so you’d have to use something on the size order of the top 20k, which would be an upper boundary of 160 quadrillion, not counting trying less than four words. I don’t know what the best order for trying the words would be or how to calculate the rank of that combination within that order, but I’m pretty sure that “a fucking long time” is the most apt descriptor of how long it’d take.

    By comparison, the 44 bit entropy the comic mentions is “just” 17 Trillion combinations for an upper boundary, or 2048^4. I’d venture a guess and say that that’s far below the lower boundary for the other option.


  • Wenn mein Problem ist, dass ich in einer Datei einen häufigen regelmäßig geformten Ausdruck finden und durch einen anderen ersetzen will?

    Ein Beispiel wäre anpassen von Skripten nach einer Datenbankmigration um die Schemata und Tabellenamen anzupassen (ja, die neue Datenbank hat Tabellenamen verändert).






  • I once did a HackTheBox where the privilege escalation weakness was a cronjob running a script. I’m not sure if I correctly remember all the details, but I think it read some parameters from a file and fed them to some other script. Since it had something to do with the webserver the user was administrating, they needed write access to the file, granted via ACL. That took me a while to spot, actually. Not sure why, but ACL is a constant blind spot for me. As for passing the parameters, you can just append the contents of the file to the command and pipe it to bash.

    I don’t recall what the normal script did, but it needed writing permissions for something. The proper way to do this would be ACL, but I guess I’m not the only one with a blind spot. The easy way to ensure the script can do whatever it needs to is to sudo the whole thing.

    So what do you do if you have a script running every ten minutes, reading the first line of a file you can edit, then executing it with superuser privileges?

    Whatever the fuck you want.


  • Ah, I did misunderstand you. I thought you meant compromise with the bastards.

    Lemmy (and the internet in general) has a tendency for replies to be diametrically opposed, so I don’t blame you for mistaking my comment as contrarian. It’s an unfortunate extension of the hostile discussion culture.

    If anything, I’d disagree on details, but not on the general sentiment: Being scared to make a move is human. Refusing to make a move because you value principle over intention is hypocrisy. Convincing others not to make a move is sabotage.

    And saboteurs are at least as bad as open enemies, if not worse for their insidious pretense. In short: They’re bastards.

    I don’t want to see firefights in the streets

    I question the sanity of anyone who does. Fighting is a destructive activity. The best war is one that is never fought.

    But as the saying goes: If you fight, you might lose…

    but as ICE ratchets up the violence against regular folks I just can’t see us not having to fight them.

    …but if you don’t fight (back), you’ve already lost. And this is a fight we really don’t want to lose.