[GH-ISSUE #1610] rename fmt_plaintext to fmt_zzz_plaintext? #1057

Closed
opened 2026-10-14 03:33:22 +07:00 by bsakaguchi · 15 comments
Owner

Originally created by @frank-dittrich on GitHub (Aug 5, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1610

to make plaintext the last plugin format which gets registered, just in case?

diff --git a/src/plaintext_fmt_plug.c b/src/plaintext_fmt_plug.c
index f13cbd7..38b6790 100644
--- a/src/plaintext_fmt_plug.c
+++ b/src/plaintext_fmt_plug.c
@@ -21,7 +21,7 @@
  *
  */

-#define FMT_STRUCT     fmt_plaintext
+#define FMT_STRUCT     fmt_zzz_plaintext

 #if FMT_EXTERNS_H
 extern struct fmt_main FMT_STRUCT;
Originally created by @frank-dittrich on GitHub (Aug 5, 2015). Original GitHub issue: https://github.com/openwall/john/issues/1610 to make plaintext the last plugin format which gets registered, just in case? ``` diff --git a/src/plaintext_fmt_plug.c b/src/plaintext_fmt_plug.c index f13cbd7..38b6790 100644 --- a/src/plaintext_fmt_plug.c +++ b/src/plaintext_fmt_plug.c @@ -21,7 +21,7 @@ * */ -#define FMT_STRUCT fmt_plaintext +#define FMT_STRUCT fmt_zzz_plaintext #if FMT_EXTERNS_H extern struct fmt_main FMT_STRUCT; ```
Author
Owner

@jfoug commented on GitHub (Aug 5, 2015):

Any reason why you just did not check this in? The change seems to be very innocuous

<!-- gh-comment-id:128142788 --> @jfoug commented on GitHub (Aug 5, 2015): Any reason why you just did not check this in? The change seems to be very innocuous
Author
Owner

@frank-dittrich commented on GitHub (Aug 5, 2015):

Just because I thought magnum had a reason.
But I might as well just commit it.

<!-- gh-comment-id:128143049 --> @frank-dittrich commented on GitHub (Aug 5, 2015): Just because I thought magnum had a reason. But I might as well just commit it.
Author
Owner

@jfoug commented on GitHub (Aug 5, 2015):

Putting that one dead last makes sense to me, at least.

<!-- gh-comment-id:128143223 --> @jfoug commented on GitHub (Aug 5, 2015): Putting that one dead last makes sense to me, at least.
Author
Owner

@frank-dittrich commented on GitHub (Aug 5, 2015):

OK. (It will be "almost" last - there are a few non-plugins...)

<!-- gh-comment-id:128143440 --> @frank-dittrich commented on GitHub (Aug 5, 2015): OK. (It will be "almost" last - there are a few non-plugins...)
Author
Owner

@jfoug commented on GitHub (Aug 5, 2015):

but I agree with you (yes, crypt is last, so that 'better' plug functions will be used), but this one as a plug should be last, as should dummy.

<!-- gh-comment-id:128143658 --> @jfoug commented on GitHub (Aug 5, 2015): but I agree with you (yes, crypt is last, so that 'better' plug functions will be used), but this one as a plug should be last, as should dummy.
Author
Owner

@frank-dittrich commented on GitHub (Aug 5, 2015):

Done, commit 46dda3f7ba

<!-- gh-comment-id:128144156 --> @frank-dittrich commented on GitHub (Aug 5, 2015): Done, commit 46dda3f7ba21475a22a5a759e109334aa286e584
Author
Owner

@jfoug commented on GitHub (Aug 5, 2015):

we spent more time on this conversation than the commit process, lol.

<!-- gh-comment-id:128144364 --> @jfoug commented on GitHub (Aug 5, 2015): we spent more time on this conversation than the commit process, lol.
Author
Owner

@frank-dittrich commented on GitHub (Aug 5, 2015):

Dummy is core.

<!-- gh-comment-id:128144486 --> @frank-dittrich commented on GitHub (Aug 5, 2015): Dummy is core.
Author
Owner

@jfoug commented on GitHub (Aug 5, 2015):

Gotcha, but so is crypt. They both should be last or pretty close to last.

<!-- gh-comment-id:128144828 --> @jfoug commented on GitHub (Aug 5, 2015): Gotcha, but so is crypt. They both should be last or pretty close to last.
Author
Owner

@frank-dittrich commented on GitHub (Aug 5, 2015):

Yes, instead of putting the jumbo logic after dummy and before crypt, I think we should move it before
john_register_one(&fmt_dummy); in john.c. @magnumripper what do you think?

<!-- gh-comment-id:128147964 --> @frank-dittrich commented on GitHub (Aug 5, 2015): Yes, instead of putting the jumbo logic after dummy and before crypt, I think we should move it before `john_register_one(&fmt_dummy);` in john.c. @magnumripper what do you think?
Author
Owner

@frank-dittrich commented on GitHub (Aug 5, 2015):

moved down dummy as well.
commit dbf6f998f6

<!-- gh-comment-id:128148799 --> @frank-dittrich commented on GitHub (Aug 5, 2015): moved down dummy as well. commit dbf6f998f67a4b4c78454e428ddbdada4c854761
Author
Owner

@magnumripper commented on GitHub (Aug 5, 2015):

Not sure what you are doing here. Doesn't the plaintext format require the $0$ tag?

<!-- gh-comment-id:128151460 --> @magnumripper commented on GitHub (Aug 5, 2015): Not sure what you are doing here. Doesn't the plaintext format **require** the `$0$` tag?
Author
Owner

@magnumripper commented on GitHub (Aug 5, 2015):

If you did this from some IRL problem, I'm fine with it. If it was from dry-running I will be angry ;-)

<!-- gh-comment-id:128151738 --> @magnumripper commented on GitHub (Aug 5, 2015): If you did this from some IRL problem, I'm fine with it. If it was from dry-running I will be angry ;-)
Author
Owner

@jfoug commented on GitHub (Aug 5, 2015):

Might be time to watch a movie again, lol

You need to build an 'angry room' for yourself.

<!-- gh-comment-id:128152963 --> @jfoug commented on GitHub (Aug 5, 2015): Might be time to watch a movie again, lol You need to build an 'angry room' for yourself.
Author
Owner

@magnumripper commented on GitHub (Aug 5, 2015):

I'm on vacation now, even you two trolls can't make me angry. I'll just have another beer 🍻 🍺 🍻

<!-- gh-comment-id:128153767 --> @magnumripper commented on GitHub (Aug 5, 2015): I'm on vacation now, even you two trolls can't make me angry. I'll just have another beer :beers: :beer: :beers:
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#1057
No description provided.