question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fields won't be renamed with csrg mappings

See original GitHub issue

Hi there (again),

I am trying to deobfuscate a 1.12.2 jar. The first step (renaming mojangs to the static names from mcp) fails partly. The classes will be renamed, all fine, but no fields.

The mappings looks like this:

a net/minecraft/util/text/TextFormatting
	a BLACK
	b DARK_BLUE
	c DARK_GREEN
	d DARK_AQUA
	e DARK_RED
	f DARK_PURPLE
	g GOLD
	h GRAY
	i DARK_GRAY
	j BLUE
	k GREEN
	l AQUA
	m RED
	n LIGHT_PURPLE
	o YELLOW
	p WHITE
	q OBFUSCATED
	r BOLD
	s STRIKETHROUGH
	t UNDERLINE
	u ITALIC
	v RESET
	w field_96331_x
	x field_96330_y
	y field_175748_y
	z field_96329_z
	A field_96303_A
	B field_96304_B
	C field_175747_C
	D $VALUES
	a (I)La; func_175744_a
	a (Ljava/lang/String;)Ljava/lang/String; func_110646_a
	a (ZZ)Ljava/util/Collection; func_96296_a
	b ()I func_175746_b
	b (Ljava/lang/String;)La; func_96300_b
	c ()Z func_96301_b
	c (Ljava/lang/String;)Ljava/lang/String; func_175745_c
	d ()Z func_96302_c
	e ()Ljava/lang/String; func_96297_d
	values ()[La; values
	toString ()Ljava/lang/String; toString

I tried it with: ./MC-Remapper --output-name=1.12.2/static.jar --fixlocalvar=rename --format=csrg 1.12.2/client.jar 1.12.2/staticMap.srg --reobf

Also tried it without --fixlocalvar, but also no success (just for running it with minimal arguments, I doubt removing this helps).

I hope you can help me 😃

Thanks

Moritz

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
HeartPatterncommented, Apr 19, 2021

Can you make it as PR, so I can handle it easier? And @finalchild can you check this patch if you are free?

0reactions
Bixiloncommented, Apr 20, 2021

okay, ty

Read more comments on GitHub >

github_iconTop Results From Across the Web

Field Mapping (REST) - Relativity Developer Documentation
The Field Mapping service available in the REST API supports multiple operations required to map fields in Relativity to fields in an external...
Read more >
Field formats check | Web App Firewall
The Field Formats check verifies the data that users send to your websites in web forms. It examines both the length and type...
Read more >
Error handling - Apollo GraphQL Docs
The GraphQL operation includes an invalid value for a field argument. ... This occurs when a request containing multiple named operations doesn't specify ......
Read more >
Complete Guide to CSRF/XSRF (Cross-Site Request Forgery)
In this article, we will understand a type of website attack called Cross-Site Request Forgery (CSRF). We will look at the kind of...
Read more >
19. Cross Site Request Forgery (CSRF) - Spring
19.1 CSRF Attacks​​ In the process, you have unintentionally transferred $100 to a malicious user. This happens because, while the evil website cannot...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found