diff --git a/BytecodeViewer 2.9.9-preview.jar b/BytecodeViewer 2.9.9-preview2.jar similarity index 59% rename from BytecodeViewer 2.9.9-preview.jar rename to BytecodeViewer 2.9.9-preview2.jar index c3dde849..7d805d9d 100644 Binary files a/BytecodeViewer 2.9.9-preview.jar and b/BytecodeViewer 2.9.9-preview2.jar differ diff --git a/src/the/bytecode/club/bootloader/AbstractLoaderFactory.java b/src/the/bytecode/club/bootloader/AbstractLoaderFactory.java index 911e773b..d922f201 100644 --- a/src/the/bytecode/club/bootloader/AbstractLoaderFactory.java +++ b/src/the/bytecode/club/bootloader/AbstractLoaderFactory.java @@ -5,6 +5,24 @@ import java.util.Map; import the.bytecode.club.bootloader.resource.ExternalResource; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * @author Bibl (don't ban me pls) * @created 21 Jul 2015 00:18:07 diff --git a/src/the/bytecode/club/bootloader/Boot.java b/src/the/bytecode/club/bootloader/Boot.java index 8bc70a79..d3591649 100644 --- a/src/the/bytecode/club/bootloader/Boot.java +++ b/src/the/bytecode/club/bootloader/Boot.java @@ -19,6 +19,24 @@ import the.bytecode.club.bytecodeviewer.BytecodeViewer; import the.bytecode.club.bytecodeviewer.ZipUtils; import the.bytecode.club.bytecodeviewer.api.ExceptionUI; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * @author Konloch * @author Bibl (don't ban me pls) diff --git a/src/the/bytecode/club/bootloader/ClassPathLoader.java b/src/the/bytecode/club/bootloader/ClassPathLoader.java index 586ca2bc..1b7fbc6f 100644 --- a/src/the/bytecode/club/bootloader/ClassPathLoader.java +++ b/src/the/bytecode/club/bootloader/ClassPathLoader.java @@ -7,6 +7,24 @@ import java.net.URLClassLoader; import the.bytecode.club.bootloader.resource.ExternalResource; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * @author Bibl (don't ban me pls) * @created 21 Jul 2015 00:09:53 diff --git a/src/the/bytecode/club/bootloader/ILoader.java b/src/the/bytecode/club/bootloader/ILoader.java index a79004d9..7ba92e04 100644 --- a/src/the/bytecode/club/bootloader/ILoader.java +++ b/src/the/bytecode/club/bootloader/ILoader.java @@ -2,6 +2,24 @@ package the.bytecode.club.bootloader; import the.bytecode.club.bootloader.resource.ExternalResource; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * @author Bibl (don't ban me pls) * @created 19 Jul 2015 02:29:43 diff --git a/src/the/bytecode/club/bootloader/InitialBootScreen.java b/src/the/bytecode/club/bootloader/InitialBootScreen.java index e2582ca1..a7709374 100644 --- a/src/the/bytecode/club/bootloader/InitialBootScreen.java +++ b/src/the/bytecode/club/bootloader/InitialBootScreen.java @@ -15,6 +15,24 @@ import javax.swing.text.html.HTMLEditorKit; import the.bytecode.club.bytecodeviewer.Resources; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * @author Konloch * @author Bibl (don't ban me pls) diff --git a/src/the/bytecode/club/bootloader/LibraryClassLoader.java b/src/the/bytecode/club/bootloader/LibraryClassLoader.java index 6870796b..f064766f 100644 --- a/src/the/bytecode/club/bootloader/LibraryClassLoader.java +++ b/src/the/bytecode/club/bootloader/LibraryClassLoader.java @@ -15,6 +15,24 @@ import the.bytecode.club.bootloader.resource.ExternalResource; import the.bytecode.club.bootloader.resource.JarContents; import the.bytecode.club.bootloader.util.ClassTree; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * @author Bibl (don't ban me pls) * @created 19 Jul 2015 02:48:41 diff --git a/src/the/bytecode/club/bootloader/LoaderFactory.java b/src/the/bytecode/club/bootloader/LoaderFactory.java index 056fd327..29dfad1b 100644 --- a/src/the/bytecode/club/bootloader/LoaderFactory.java +++ b/src/the/bytecode/club/bootloader/LoaderFactory.java @@ -1,5 +1,23 @@ package the.bytecode.club.bootloader; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * @author Bibl (don't ban me pls) * @created 21 Jul 2015 00:14:53 diff --git a/src/the/bytecode/club/bootloader/resource/DataContainer.java b/src/the/bytecode/club/bootloader/resource/DataContainer.java index 1d748ab8..89c00a44 100644 --- a/src/the/bytecode/club/bootloader/resource/DataContainer.java +++ b/src/the/bytecode/club/bootloader/resource/DataContainer.java @@ -4,6 +4,24 @@ import java.util.ArrayList; import java.util.Collection; import java.util.Map; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * @author Bibl (don't ban me pls) * @created ages ago diff --git a/src/the/bytecode/club/bootloader/resource/EmptyExternalResource.java b/src/the/bytecode/club/bootloader/resource/EmptyExternalResource.java index d88e958b..ec1c4c98 100644 --- a/src/the/bytecode/club/bootloader/resource/EmptyExternalResource.java +++ b/src/the/bytecode/club/bootloader/resource/EmptyExternalResource.java @@ -3,6 +3,24 @@ package the.bytecode.club.bootloader.resource; import java.io.IOException; import java.net.URL; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * @author Bibl (don't ban me pls) * @created 21 Jul 2015 00:29:11 diff --git a/src/the/bytecode/club/bootloader/resource/ExternalLibrary.java b/src/the/bytecode/club/bootloader/resource/ExternalLibrary.java index efc98868..0c539f79 100644 --- a/src/the/bytecode/club/bootloader/resource/ExternalLibrary.java +++ b/src/the/bytecode/club/bootloader/resource/ExternalLibrary.java @@ -13,6 +13,24 @@ import java.util.jar.JarFile; import org.objectweb.asm.ClassReader; import org.objectweb.asm.tree.ClassNode; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * @author Bibl (don't ban me pls) * @created 19 Jul 2015 02:33:23 diff --git a/src/the/bytecode/club/bootloader/resource/ExternalResource.java b/src/the/bytecode/club/bootloader/resource/ExternalResource.java index aa185125..a8b883c7 100644 --- a/src/the/bytecode/club/bootloader/resource/ExternalResource.java +++ b/src/the/bytecode/club/bootloader/resource/ExternalResource.java @@ -3,6 +3,24 @@ package the.bytecode.club.bootloader.resource; import java.io.IOException; import java.net.URL; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * @author Bibl (don't ban me pls) * @created 19 Jul 2015 02:30:30 diff --git a/src/the/bytecode/club/bootloader/resource/JarContents.java b/src/the/bytecode/club/bootloader/resource/JarContents.java index 37c59b1e..a32b5d21 100644 --- a/src/the/bytecode/club/bootloader/resource/JarContents.java +++ b/src/the/bytecode/club/bootloader/resource/JarContents.java @@ -9,6 +9,24 @@ import java.util.Map; import org.objectweb.asm.tree.ClassNode; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * @author Bibl (don't ban me pls) * @created ages ago diff --git a/src/the/bytecode/club/bootloader/resource/JarInfo.java b/src/the/bytecode/club/bootloader/resource/JarInfo.java index 394913e3..b5ece080 100644 --- a/src/the/bytecode/club/bootloader/resource/JarInfo.java +++ b/src/the/bytecode/club/bootloader/resource/JarInfo.java @@ -5,6 +5,24 @@ import java.net.JarURLConnection; import java.net.MalformedURLException; import java.net.URL; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Holds information about a single local or external JarFile. * diff --git a/src/the/bytecode/club/bootloader/resource/JarResource.java b/src/the/bytecode/club/bootloader/resource/JarResource.java index 6a19c78f..385693a0 100644 --- a/src/the/bytecode/club/bootloader/resource/JarResource.java +++ b/src/the/bytecode/club/bootloader/resource/JarResource.java @@ -2,6 +2,24 @@ package the.bytecode.club.bootloader.resource; import java.util.Arrays; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * @author Bibl (don't ban me pls) * @created ages ago diff --git a/src/the/bytecode/club/bootloader/resource/JarType.java b/src/the/bytecode/club/bootloader/resource/JarType.java index a06f7609..01f7f343 100644 --- a/src/the/bytecode/club/bootloader/resource/JarType.java +++ b/src/the/bytecode/club/bootloader/resource/JarType.java @@ -1,5 +1,23 @@ package the.bytecode.club.bootloader.resource; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Type of Jar Stored. * @author Bibl diff --git a/src/the/bytecode/club/bootloader/resource/LocateableJarContents.java b/src/the/bytecode/club/bootloader/resource/LocateableJarContents.java index da150d73..774a9104 100644 --- a/src/the/bytecode/club/bootloader/resource/LocateableJarContents.java +++ b/src/the/bytecode/club/bootloader/resource/LocateableJarContents.java @@ -4,6 +4,24 @@ import java.net.URL; import org.objectweb.asm.tree.ClassNode; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * @author Bibl (don't ban me pls) * @created ages ago diff --git a/src/the/bytecode/club/bootloader/util/ClassHelper.java b/src/the/bytecode/club/bootloader/util/ClassHelper.java index 50089657..8d5825e8 100644 --- a/src/the/bytecode/club/bootloader/util/ClassHelper.java +++ b/src/the/bytecode/club/bootloader/util/ClassHelper.java @@ -7,6 +7,24 @@ import java.util.Map.Entry; import org.objectweb.asm.tree.ClassNode; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * @author Bibl (don't ban me pls) * @created 25 May 2015 (actually before this) diff --git a/src/the/bytecode/club/bootloader/util/ClassTree.java b/src/the/bytecode/club/bootloader/util/ClassTree.java index 2e2bd464..915da592 100644 --- a/src/the/bytecode/club/bootloader/util/ClassTree.java +++ b/src/the/bytecode/club/bootloader/util/ClassTree.java @@ -13,6 +13,24 @@ import java.util.Set; import org.objectweb.asm.tree.ClassNode; import org.objectweb.asm.tree.MethodNode; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * @author Bibl (don't ban me pls) * @created 25 May 2015 (actually before this) diff --git a/src/the/bytecode/club/bootloader/util/NullCreator.java b/src/the/bytecode/club/bootloader/util/NullCreator.java index 8e942e99..c222887f 100644 --- a/src/the/bytecode/club/bootloader/util/NullCreator.java +++ b/src/the/bytecode/club/bootloader/util/NullCreator.java @@ -1,5 +1,23 @@ package the.bytecode.club.bootloader.util; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * @author Bibl (don't ban me pls) * @created ages ago diff --git a/src/the/bytecode/club/bootloader/util/NullPermeableHashMap.java b/src/the/bytecode/club/bootloader/util/NullPermeableHashMap.java index 9a63c591..3179545e 100644 --- a/src/the/bytecode/club/bootloader/util/NullPermeableHashMap.java +++ b/src/the/bytecode/club/bootloader/util/NullPermeableHashMap.java @@ -2,6 +2,24 @@ package the.bytecode.club.bootloader.util; import java.util.HashMap; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * @author Bibl (don't ban me pls) * @created ages ago diff --git a/src/the/bytecode/club/bootloader/util/SetCreator.java b/src/the/bytecode/club/bootloader/util/SetCreator.java index 6facaa95..47e99e25 100644 --- a/src/the/bytecode/club/bootloader/util/SetCreator.java +++ b/src/the/bytecode/club/bootloader/util/SetCreator.java @@ -3,6 +3,24 @@ package the.bytecode.club.bootloader.util; import java.util.HashSet; import java.util.Set; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * @author Bibl (don't ban me pls) * @created 25 May 2015 (actually before this) diff --git a/src/the/bytecode/club/bootloader/util/ValueCreator.java b/src/the/bytecode/club/bootloader/util/ValueCreator.java index c722510d..af317e79 100644 --- a/src/the/bytecode/club/bootloader/util/ValueCreator.java +++ b/src/the/bytecode/club/bootloader/util/ValueCreator.java @@ -1,5 +1,23 @@ package the.bytecode.club.bootloader.util; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * @author Bibl (don't ban me pls) * @created ages ago diff --git a/src/the/bytecode/club/bytecodeviewer/APKTool.java b/src/the/bytecode/club/bytecodeviewer/APKTool.java index 828d6d51..111a4a9c 100644 --- a/src/the/bytecode/club/bytecodeviewer/APKTool.java +++ b/src/the/bytecode/club/bytecodeviewer/APKTool.java @@ -4,6 +4,24 @@ import java.io.File; import org.apache.commons.io.FileUtils; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + public class APKTool { public static synchronized void decodeResources(File input, File output) { diff --git a/src/the/bytecode/club/bytecodeviewer/BytecodeViewer.java b/src/the/bytecode/club/bytecodeviewer/BytecodeViewer.java index e5529c30..92fd797d 100644 --- a/src/the/bytecode/club/bytecodeviewer/BytecodeViewer.java +++ b/src/the/bytecode/club/bytecodeviewer/BytecodeViewer.java @@ -48,6 +48,24 @@ import the.bytecode.club.bytecodeviewer.gui.WorkPane; import the.bytecode.club.bytecodeviewer.obfuscators.mapping.Refactorer; import the.bytecode.club.bytecodeviewer.plugin.PluginManager; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * A lightweight Java Reverse Engineering suite, developed by Konloch - http://konloch.me * @@ -100,6 +118,11 @@ import the.bytecode.club.bytecodeviewer.plugin.PluginManager; * -----2.9.9-----: * 08/01/2015 - Fixed a pingback concurrency exception issue. * 08/03/2015 - Fixed a typo for FernFlower decompiler. + * 08/03/2015 - Fixed an issue with Krakatau Decompiler as zip. + * 08/07/2015 - "Fixed" an issue with Enjarify and latest PyPy3 bin. + * 08/07/2015 - FernFlower & CFR Decompiler now launch in their own process with the 'slimjar' version. + * 08/07/2015 - Switched the ClassViewer up slightly so it utilizes the event dispatch thread. + * 08/07/2015 - Fixed? CFIDE's Bytecode Decompiler on TableSwitchs * * @author Konloch * @@ -108,7 +131,7 @@ import the.bytecode.club.bytecodeviewer.plugin.PluginManager; public class BytecodeViewer { /*per version*/ - public static String version = "2.9.8"; + public static String version = "2.9.9"; public static boolean previewCopy = false; public static boolean fatJar = false; //could be automatic by checking if it's loaded a class named whatever for a library /*the rest*/ @@ -559,7 +582,7 @@ public class BytecodeViewer { * Returns the java command it can use to launch the decompilers * @return */ - public static String getJavaCommand() { + public static synchronized String getJavaCommand() { try { sm.stopBlocking(); ProcessBuilder pb = new ProcessBuilder("java", "-version"); @@ -572,10 +595,9 @@ public class BytecodeViewer { boolean empty = java.isEmpty(); while(empty) { showMessage("You need to set your Java path, this requires the JRE to be downloaded."+BytecodeViewer.nl+ - "(C:/programfiles/Java/JRE_xx/bin/javac.exe)"); + "(C:/programfiles/Java/JRE_xx/bin/java.exe)"); viewer.java(); - if(!java.isEmpty()) - empty = false; + empty = java.isEmpty(); } } return java; diff --git a/src/the/bytecode/club/bytecodeviewer/CommandLineInput.java b/src/the/bytecode/club/bytecodeviewer/CommandLineInput.java index 27127053..eec77495 100644 --- a/src/the/bytecode/club/bytecodeviewer/CommandLineInput.java +++ b/src/the/bytecode/club/bytecodeviewer/CommandLineInput.java @@ -13,6 +13,24 @@ import org.objectweb.asm.tree.ClassNode; import the.bytecode.club.bytecodeviewer.decompilers.Decompiler; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * * Used to allow BCV to be integrated as CLI instead of GUI. diff --git a/src/the/bytecode/club/bytecodeviewer/Dex2Jar.java b/src/the/bytecode/club/bytecodeviewer/Dex2Jar.java index 7ee31673..cb06121a 100644 --- a/src/the/bytecode/club/bytecodeviewer/Dex2Jar.java +++ b/src/the/bytecode/club/bytecodeviewer/Dex2Jar.java @@ -2,6 +2,24 @@ package the.bytecode.club.bytecodeviewer; import java.io.File; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * A simple wrapper for Dex2Jar. * diff --git a/src/the/bytecode/club/bytecodeviewer/Enjarify.java b/src/the/bytecode/club/bytecodeviewer/Enjarify.java index f90e300a..348f5bec 100644 --- a/src/the/bytecode/club/bytecodeviewer/Enjarify.java +++ b/src/the/bytecode/club/bytecodeviewer/Enjarify.java @@ -2,6 +2,24 @@ package the.bytecode.club.bytecodeviewer; import java.io.File; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * A simple wrapper for Enjarify. * @@ -36,13 +54,15 @@ public class Enjarify { "enjarify.main", input.getAbsolutePath(), "-o", - output.getAbsolutePath() + output.getAbsolutePath(), + "-f" ); pb.directory(new File(BytecodeViewer.enjarifyWorkingDirectory)); Process process = pb.start(); BytecodeViewer.createdProcesses.add(process); process.waitFor(); + MiscUtils.printProcess(process); } catch(Exception e) { new the.bytecode.club.bytecodeviewer.api.ExceptionUI(e); diff --git a/src/the/bytecode/club/bytecodeviewer/FileChangeNotifier.java b/src/the/bytecode/club/bytecodeviewer/FileChangeNotifier.java index ff901992..b1dd34bd 100644 --- a/src/the/bytecode/club/bytecodeviewer/FileChangeNotifier.java +++ b/src/the/bytecode/club/bytecodeviewer/FileChangeNotifier.java @@ -2,6 +2,24 @@ package the.bytecode.club.bytecodeviewer; import org.objectweb.asm.tree.ClassNode; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Used to represent whenever a file has been opened * diff --git a/src/the/bytecode/club/bytecodeviewer/FileContainer.java b/src/the/bytecode/club/bytecodeviewer/FileContainer.java index eea00c12..2746ba0f 100644 --- a/src/the/bytecode/club/bytecodeviewer/FileContainer.java +++ b/src/the/bytecode/club/bytecodeviewer/FileContainer.java @@ -6,6 +6,24 @@ import java.util.HashMap; import org.objectweb.asm.tree.ClassNode; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Represents a file container * diff --git a/src/the/bytecode/club/bytecodeviewer/FileDrop.java b/src/the/bytecode/club/bytecodeviewer/FileDrop.java index a113bb8f..379648e7 100644 --- a/src/the/bytecode/club/bytecodeviewer/FileDrop.java +++ b/src/the/bytecode/club/bytecodeviewer/FileDrop.java @@ -7,6 +7,24 @@ import java.io.IOException; import java.io.PrintStream; import java.io.Reader; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * This class makes it easy to drag and drop files from the operating system to * a Java program. Any java.awt.Component can be dropped onto, but only diff --git a/src/the/bytecode/club/bytecodeviewer/JarUtils.java b/src/the/bytecode/club/bytecodeviewer/JarUtils.java index a59df94b..8e148d00 100644 --- a/src/the/bytecode/club/bytecodeviewer/JarUtils.java +++ b/src/the/bytecode/club/bytecodeviewer/JarUtils.java @@ -19,6 +19,24 @@ import org.objectweb.asm.ClassReader; import org.objectweb.asm.ClassWriter; import org.objectweb.asm.tree.ClassNode; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Loading and saving jars * diff --git a/src/the/bytecode/club/bytecodeviewer/MiscUtils.java b/src/the/bytecode/club/bytecodeviewer/MiscUtils.java index 8bdd82b2..2b46c415 100644 --- a/src/the/bytecode/club/bytecodeviewer/MiscUtils.java +++ b/src/the/bytecode/club/bytecodeviewer/MiscUtils.java @@ -1,8 +1,29 @@ package the.bytecode.club.bytecodeviewer; +import java.io.BufferedReader; import java.io.File; +import java.io.InputStream; +import java.io.InputStreamReader; import java.util.Random; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * A collection of Misc Utils. * @@ -27,6 +48,26 @@ public class MiscUtils { return sb.toString(); } + public static void printProcess(Process process) throws Exception { + //Read out dir output + InputStream is = process.getInputStream(); + InputStreamReader isr = new InputStreamReader(is); + BufferedReader br = new BufferedReader(isr); + String line; + while ((line = br.readLine()) != null) { + System.out.println(line); + } + br.close(); + + is = process.getErrorStream(); + isr = new InputStreamReader(is); + br = new BufferedReader(isr); + while ((line = br.readLine()) != null) { + System.out.println(line); + } + br.close(); + } + /** * Returns a random string with numbers * @param len the length of the String diff --git a/src/the/bytecode/club/bytecodeviewer/NewlineOutputStream.java b/src/the/bytecode/club/bytecodeviewer/NewlineOutputStream.java index c7a1c5b8..b24626f1 100644 --- a/src/the/bytecode/club/bytecodeviewer/NewlineOutputStream.java +++ b/src/the/bytecode/club/bytecodeviewer/NewlineOutputStream.java @@ -2,6 +2,24 @@ package the.bytecode.club.bytecodeviewer; import java.io.*; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Convert the various newline conventions to the local platform's * newline convention.

diff --git a/src/the/bytecode/club/bytecodeviewer/Resources.java b/src/the/bytecode/club/bytecodeviewer/Resources.java index b5bfd03e..e3e7494c 100644 --- a/src/the/bytecode/club/bytecodeviewer/Resources.java +++ b/src/the/bytecode/club/bytecodeviewer/Resources.java @@ -11,6 +11,24 @@ import javax.swing.ImageIcon; import org.apache.commons.codec.binary.Base64; import org.imgscalr.Scalr; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Any resources loaded by disc or by memory. * diff --git a/src/the/bytecode/club/bytecodeviewer/SecurityMan.java b/src/the/bytecode/club/bytecodeviewer/SecurityMan.java index 86c761da..4ca48a7b 100644 --- a/src/the/bytecode/club/bytecodeviewer/SecurityMan.java +++ b/src/the/bytecode/club/bytecodeviewer/SecurityMan.java @@ -4,6 +4,24 @@ import java.io.FileDescriptor; import java.net.InetAddress; import java.security.Permission; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * An awesome security manager. * diff --git a/src/the/bytecode/club/bytecodeviewer/Settings.java b/src/the/bytecode/club/bytecodeviewer/Settings.java index 5d7a1599..2ac538f9 100644 --- a/src/the/bytecode/club/bytecodeviewer/Settings.java +++ b/src/the/bytecode/club/bytecodeviewer/Settings.java @@ -5,6 +5,24 @@ import javax.swing.JFrame; import me.konloch.kontainer.io.DiskReader; import me.konloch.kontainer.io.DiskWriter; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Used to handle loading/saving the GUI (options). * diff --git a/src/the/bytecode/club/bytecodeviewer/ZipUtils.java b/src/the/bytecode/club/bytecodeviewer/ZipUtils.java index 16176b81..ed014a30 100644 --- a/src/the/bytecode/club/bytecodeviewer/ZipUtils.java +++ b/src/the/bytecode/club/bytecodeviewer/ZipUtils.java @@ -7,6 +7,24 @@ import java.util.jar.JarFile; import java.util.zip.ZipEntry; import java.util.zip.ZipOutputStream; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Rudimentary utility class for Zip archives. */ diff --git a/src/the/bytecode/club/bytecodeviewer/api/ASMUtil_OLD.java b/src/the/bytecode/club/bytecodeviewer/api/ASMUtil_OLD.java index a3f3d1e4..966d6d6e 100644 --- a/src/the/bytecode/club/bytecodeviewer/api/ASMUtil_OLD.java +++ b/src/the/bytecode/club/bytecodeviewer/api/ASMUtil_OLD.java @@ -14,6 +14,24 @@ import org.objectweb.asm.tree.TypeInsnNode; import the.bytecode.club.bytecodeviewer.BytecodeViewer; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Used to rename/replace methods/classes/fields * diff --git a/src/the/bytecode/club/bytecodeviewer/api/BytecodeHook.java b/src/the/bytecode/club/bytecodeviewer/api/BytecodeHook.java index 862befb0..82f76f5e 100644 --- a/src/the/bytecode/club/bytecodeviewer/api/BytecodeHook.java +++ b/src/the/bytecode/club/bytecodeviewer/api/BytecodeHook.java @@ -1,5 +1,23 @@ package the.bytecode.club.bytecodeviewer.api; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Whenever a function is executed, this class will be executed with the * function callHook(String); diff --git a/src/the/bytecode/club/bytecodeviewer/api/BytecodeViewer.java b/src/the/bytecode/club/bytecodeviewer/api/BytecodeViewer.java index 304502f2..2cbc345c 100644 --- a/src/the/bytecode/club/bytecodeviewer/api/BytecodeViewer.java +++ b/src/the/bytecode/club/bytecodeviewer/api/BytecodeViewer.java @@ -15,6 +15,24 @@ import the.bytecode.club.bytecodeviewer.JarUtils; import the.bytecode.club.bytecodeviewer.decompilers.Decompiler; import the.bytecode.club.bytecodeviewer.plugin.preinstalled.EZInjection; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * The official API for BCV, this was designed for plugin authors and * people utilizing EZ-Injection. diff --git a/src/the/bytecode/club/bytecodeviewer/api/ClassNodeLoader.java b/src/the/bytecode/club/bytecodeviewer/api/ClassNodeLoader.java index c025b0d1..1a06011f 100644 --- a/src/the/bytecode/club/bytecodeviewer/api/ClassNodeLoader.java +++ b/src/the/bytecode/club/bytecodeviewer/api/ClassNodeLoader.java @@ -12,6 +12,24 @@ import java.util.HashMap; import org.objectweb.asm.ClassWriter; import org.objectweb.asm.tree.ClassNode; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * * @author Demmonic diff --git a/src/the/bytecode/club/bytecodeviewer/api/ExceptionUI.java b/src/the/bytecode/club/bytecodeviewer/api/ExceptionUI.java index b75b6af2..3ccde5e4 100644 --- a/src/the/bytecode/club/bytecodeviewer/api/ExceptionUI.java +++ b/src/the/bytecode/club/bytecodeviewer/api/ExceptionUI.java @@ -13,6 +13,24 @@ import javax.swing.JTextArea; import the.bytecode.club.bytecodeviewer.BytecodeViewer; import the.bytecode.club.bytecodeviewer.Resources; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * A simple class designed to show exceptions in the UI. * diff --git a/src/the/bytecode/club/bytecodeviewer/api/Plugin.java b/src/the/bytecode/club/bytecodeviewer/api/Plugin.java index 0dba4676..5ea5700e 100644 --- a/src/the/bytecode/club/bytecodeviewer/api/Plugin.java +++ b/src/the/bytecode/club/bytecodeviewer/api/Plugin.java @@ -6,6 +6,24 @@ import org.objectweb.asm.tree.ClassNode; import the.bytecode.club.bytecodeviewer.BytecodeViewer; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * A simple plugin class, it will run the plugin in a background thread. * diff --git a/src/the/bytecode/club/bytecodeviewer/api/PluginConsole.java b/src/the/bytecode/club/bytecodeviewer/api/PluginConsole.java index 0076cf4a..b8db5db1 100644 --- a/src/the/bytecode/club/bytecodeviewer/api/PluginConsole.java +++ b/src/the/bytecode/club/bytecodeviewer/api/PluginConsole.java @@ -26,6 +26,24 @@ import javax.swing.text.DefaultHighlighter; import javax.swing.text.Highlighter; import javax.swing.text.JTextComponent; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * A simple console GUI. * diff --git a/src/the/bytecode/club/bytecodeviewer/compilers/Compiler.java b/src/the/bytecode/club/bytecodeviewer/compilers/Compiler.java index f965a947..181b77c2 100644 --- a/src/the/bytecode/club/bytecodeviewer/compilers/Compiler.java +++ b/src/the/bytecode/club/bytecodeviewer/compilers/Compiler.java @@ -1,5 +1,23 @@ package the.bytecode.club.bytecodeviewer.compilers; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Used to represent all the compilers/assemblers BCV contains. * diff --git a/src/the/bytecode/club/bytecodeviewer/compilers/JavaCompiler.java b/src/the/bytecode/club/bytecodeviewer/compilers/JavaCompiler.java index 882b1aa0..39e051f0 100644 --- a/src/the/bytecode/club/bytecodeviewer/compilers/JavaCompiler.java +++ b/src/the/bytecode/club/bytecodeviewer/compilers/JavaCompiler.java @@ -11,6 +11,24 @@ import the.bytecode.club.bytecodeviewer.BytecodeViewer; import the.bytecode.club.bytecodeviewer.JarUtils; import the.bytecode.club.bytecodeviewer.MiscUtils; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Java Compiler * diff --git a/src/the/bytecode/club/bytecodeviewer/compilers/KrakatauAssembler.java b/src/the/bytecode/club/bytecodeviewer/compilers/KrakatauAssembler.java index be0ea765..b677eace 100644 --- a/src/the/bytecode/club/bytecodeviewer/compilers/KrakatauAssembler.java +++ b/src/the/bytecode/club/bytecodeviewer/compilers/KrakatauAssembler.java @@ -10,6 +10,24 @@ import the.bytecode.club.bytecodeviewer.BytecodeViewer; import the.bytecode.club.bytecodeviewer.JarUtils; import the.bytecode.club.bytecodeviewer.MiscUtils; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Krakatau Java assembler, requires Python 2.7 * @@ -80,7 +98,7 @@ public class KrakatauAssembler extends Compiler { int exitValue = process.waitFor(); log += BytecodeViewer.nl+BytecodeViewer.nl+"Exit Value is " + exitValue; - //System.out.println(log); + System.out.println(log); byte[] b = org.apache.commons.io.FileUtils.readFileToByteArray(new File(tempDirectory.getAbsolutePath() + BytecodeViewer.fs + origName + ".class")); tempDirectory.delete(); diff --git a/src/the/bytecode/club/bytecodeviewer/compilers/SmaliAssembler.java b/src/the/bytecode/club/bytecodeviewer/compilers/SmaliAssembler.java index 2f6b4428..8053b5b2 100644 --- a/src/the/bytecode/club/bytecodeviewer/compilers/SmaliAssembler.java +++ b/src/the/bytecode/club/bytecodeviewer/compilers/SmaliAssembler.java @@ -9,6 +9,24 @@ import the.bytecode.club.bytecodeviewer.Enjarify; import the.bytecode.club.bytecodeviewer.MiscUtils; import the.bytecode.club.bytecodeviewer.ZipUtils; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Smali Assembler Wrapper for Java * diff --git a/src/the/bytecode/club/bytecodeviewer/decompilers/CFRDecompiler.java b/src/the/bytecode/club/bytecodeviewer/decompilers/CFRDecompiler.java index 009a0462..ba63629a 100644 --- a/src/the/bytecode/club/bytecodeviewer/decompilers/CFRDecompiler.java +++ b/src/the/bytecode/club/bytecodeviewer/decompilers/CFRDecompiler.java @@ -25,6 +25,24 @@ import the.bytecode.club.bytecodeviewer.JarUtils; import the.bytecode.club.bytecodeviewer.MiscUtils; import the.bytecode.club.bytecodeviewer.Resources; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * CFR Java Wrapper * @@ -51,7 +69,7 @@ public class CFRDecompiler extends Decompiler { } String fuckery = fuckery(fileStart); - /*if(!BytecodeViewer.fatJar) { + if(!BytecodeViewer.fatJar) { try { ProcessBuilder pb = new ProcessBuilder(ArrayUtils.addAll( new String[]{BytecodeViewer.getJavaCommand(),"-jar",Resources.findLibrary("cfr")}, @@ -66,9 +84,9 @@ public class CFRDecompiler extends Decompiler { } finally { BytecodeViewer.sm.setBlocking(); } - } else {*/ + } else { org.benf.cfr.reader.Main.main(generateMainMethod(tempClass.getAbsolutePath(), fuckery)); - //} + } tempClass.delete(); diff --git a/src/the/bytecode/club/bytecodeviewer/decompilers/Decompiler.java b/src/the/bytecode/club/bytecodeviewer/decompilers/Decompiler.java index 4b57e110..e000e30d 100644 --- a/src/the/bytecode/club/bytecodeviewer/decompilers/Decompiler.java +++ b/src/the/bytecode/club/bytecodeviewer/decompilers/Decompiler.java @@ -4,6 +4,24 @@ import org.objectweb.asm.tree.ClassNode; import the.bytecode.club.bytecodeviewer.decompilers.bytecode.ClassNodeDecompiler; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Used to represent all of the decompilers/disassemblers BCV contains. * diff --git a/src/the/bytecode/club/bytecodeviewer/decompilers/FernFlowerDecompiler.java b/src/the/bytecode/club/bytecodeviewer/decompilers/FernFlowerDecompiler.java index afc1e36d..f8b398ff 100644 --- a/src/the/bytecode/club/bytecodeviewer/decompilers/FernFlowerDecompiler.java +++ b/src/the/bytecode/club/bytecodeviewer/decompilers/FernFlowerDecompiler.java @@ -8,11 +8,31 @@ import java.io.StringWriter; import me.konloch.kontainer.io.DiskReader; +import org.apache.commons.lang3.ArrayUtils; import org.objectweb.asm.tree.ClassNode; import the.bytecode.club.bytecodeviewer.BytecodeViewer; import the.bytecode.club.bytecodeviewer.JarUtils; import the.bytecode.club.bytecodeviewer.MiscUtils; +import the.bytecode.club.bytecodeviewer.Resources; + +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ /** * A FernFlower wrapper with all the options (except 2) @@ -36,10 +56,9 @@ public class FernFlowerDecompiler extends Decompiler { JarUtils.saveAsJar(BytecodeViewer.getLoadedClasses(), tempZip.getAbsolutePath()); - - org.jetbrains.java.decompiler.main.decompiler.ConsoleDecompiler - .main(generateMainMethod(tempZip.getAbsolutePath(), - BytecodeViewer.tempDirectory + "./temp/")); + + org.jetbrains.java.decompiler.main.decompiler.ConsoleDecompiler.main(generateMainMethod(tempZip.getAbsolutePath(), BytecodeViewer.tempDirectory + "./temp/")); + File tempZip2 = new File(BytecodeViewer.tempDirectory + BytecodeViewer.fs + "temp" + BytecodeViewer.fs + tempZip.getName()); @@ -71,9 +90,27 @@ public class FernFlowerDecompiler extends Decompiler { exception = "Bytecode Viewer Version: " + BytecodeViewer.version + BytecodeViewer.nl + BytecodeViewer.nl + sw.toString(); } + - org.jetbrains.java.decompiler.main.decompiler.ConsoleDecompiler - .main(generateMainMethod(tempClass.getAbsolutePath(), ".")); + + if(!BytecodeViewer.fatJar) { + try { + ProcessBuilder pb = new ProcessBuilder(ArrayUtils.addAll( + new String[]{BytecodeViewer.getJavaCommand(),"-jar",Resources.findLibrary("fernflower")}, + generateMainMethod(tempClass.getAbsolutePath(), ".") + )); + BytecodeViewer.sm.stopBlocking(); + Process p = pb.start(); + BytecodeViewer.createdProcesses.add(p); + p.waitFor(); + } catch(Exception e) { + new the.bytecode.club.bytecodeviewer.api.ExceptionUI(e); + } finally { + BytecodeViewer.sm.setBlocking(); + } + } else + org.jetbrains.java.decompiler.main.decompiler.ConsoleDecompiler.main( + generateMainMethod(tempClass.getAbsolutePath(), ".")); tempClass.delete(); diff --git a/src/the/bytecode/club/bytecodeviewer/decompilers/JDGUIDecompiler.java b/src/the/bytecode/club/bytecodeviewer/decompilers/JDGUIDecompiler.java index e4bfff72..aecbc412 100644 --- a/src/the/bytecode/club/bytecodeviewer/decompilers/JDGUIDecompiler.java +++ b/src/the/bytecode/club/bytecodeviewer/decompilers/JDGUIDecompiler.java @@ -19,6 +19,24 @@ import the.bytecode.club.bytecodeviewer.BytecodeViewer; import the.bytecode.club.bytecodeviewer.MiscUtils; import jd.cli.printer.text.PlainTextPrinter; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * JD-Core Decompiler Wrapper * diff --git a/src/the/bytecode/club/bytecodeviewer/decompilers/KrakatauDecompiler.java b/src/the/bytecode/club/bytecodeviewer/decompilers/KrakatauDecompiler.java index bbd1a990..19f0d645 100644 --- a/src/the/bytecode/club/bytecodeviewer/decompilers/KrakatauDecompiler.java +++ b/src/the/bytecode/club/bytecodeviewer/decompilers/KrakatauDecompiler.java @@ -16,6 +16,24 @@ import the.bytecode.club.bytecodeviewer.JarUtils; import the.bytecode.club.bytecodeviewer.MiscUtils; import the.bytecode.club.bytecodeviewer.ZipUtils; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Krakatau Java Decompiler Wrapper, requires Python 2.7 * @@ -152,6 +170,7 @@ public class KrakatauDecompiler extends Decompiler { Process process = pb.start(); BytecodeViewer.createdProcesses.add(process); process.waitFor(); + MiscUtils.printProcess(process); // ZipUtils.zipDirectory(tempDirectory, new File(zipName)); ZipUtils.zipFolder(tempDirectory.getAbsolutePath(), zipName, ran); diff --git a/src/the/bytecode/club/bytecodeviewer/decompilers/KrakatauDisassembler.java b/src/the/bytecode/club/bytecodeviewer/decompilers/KrakatauDisassembler.java index a761a8ed..5d1c32a0 100644 --- a/src/the/bytecode/club/bytecodeviewer/decompilers/KrakatauDisassembler.java +++ b/src/the/bytecode/club/bytecodeviewer/decompilers/KrakatauDisassembler.java @@ -16,6 +16,24 @@ import the.bytecode.club.bytecodeviewer.JarUtils; import the.bytecode.club.bytecodeviewer.MiscUtils; import the.bytecode.club.bytecodeviewer.ZipUtils; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Krakatau Java Disassembler Wrapper, requires Python 2.7 * diff --git a/src/the/bytecode/club/bytecodeviewer/decompilers/ProcyonDecompiler.java b/src/the/bytecode/club/bytecodeviewer/decompilers/ProcyonDecompiler.java index ae13f032..e96b3cea 100644 --- a/src/the/bytecode/club/bytecodeviewer/decompilers/ProcyonDecompiler.java +++ b/src/the/bytecode/club/bytecodeviewer/decompilers/ProcyonDecompiler.java @@ -38,6 +38,24 @@ import the.bytecode.club.bytecodeviewer.BytecodeViewer; import the.bytecode.club.bytecodeviewer.JarUtils; import the.bytecode.club.bytecodeviewer.MiscUtils; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Procyon Java Decompiler Wrapper * diff --git a/src/the/bytecode/club/bytecodeviewer/decompilers/SmaliDisassembler.java b/src/the/bytecode/club/bytecodeviewer/decompilers/SmaliDisassembler.java index 68573498..dd3f86ed 100644 --- a/src/the/bytecode/club/bytecodeviewer/decompilers/SmaliDisassembler.java +++ b/src/the/bytecode/club/bytecodeviewer/decompilers/SmaliDisassembler.java @@ -13,6 +13,24 @@ import the.bytecode.club.bytecodeviewer.Dex2Jar; import the.bytecode.club.bytecodeviewer.MiscUtils; import the.bytecode.club.bytecodeviewer.ZipUtils; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Smali Disassembler Wrapper * diff --git a/src/the/bytecode/club/bytecodeviewer/decompilers/bytecode/ClassNodeDecompiler.java b/src/the/bytecode/club/bytecodeviewer/decompilers/bytecode/ClassNodeDecompiler.java index d8229cd4..4d476963 100644 --- a/src/the/bytecode/club/bytecodeviewer/decompilers/bytecode/ClassNodeDecompiler.java +++ b/src/the/bytecode/club/bytecodeviewer/decompilers/bytecode/ClassNodeDecompiler.java @@ -12,6 +12,24 @@ import org.objectweb.asm.tree.MethodNode; import the.bytecode.club.bytecodeviewer.BytecodeViewer; import the.bytecode.club.bytecodeviewer.decompilers.Decompiler; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * * @author Konloch diff --git a/src/the/bytecode/club/bytecodeviewer/decompilers/bytecode/FieldNodeDecompiler.java b/src/the/bytecode/club/bytecodeviewer/decompilers/bytecode/FieldNodeDecompiler.java index d1081345..f54eaba7 100644 --- a/src/the/bytecode/club/bytecodeviewer/decompilers/bytecode/FieldNodeDecompiler.java +++ b/src/the/bytecode/club/bytecodeviewer/decompilers/bytecode/FieldNodeDecompiler.java @@ -7,6 +7,24 @@ import org.objectweb.asm.Opcodes; import org.objectweb.asm.Type; import org.objectweb.asm.tree.FieldNode; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * * @author Konloch diff --git a/src/the/bytecode/club/bytecodeviewer/decompilers/bytecode/InstructionPattern.java b/src/the/bytecode/club/bytecodeviewer/decompilers/bytecode/InstructionPattern.java index a4dd3a9b..851ef670 100644 --- a/src/the/bytecode/club/bytecodeviewer/decompilers/bytecode/InstructionPattern.java +++ b/src/the/bytecode/club/bytecodeviewer/decompilers/bytecode/InstructionPattern.java @@ -27,6 +27,24 @@ import eu.bibl.banalysis.filter.insn.MultiANewArrayInstructionFilter; import eu.bibl.banalysis.filter.insn.TypeInstructionFilter; import eu.bibl.banalysis.filter.insn.VarInstructionFilter; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Pattern filter holder and stepper. * diff --git a/src/the/bytecode/club/bytecodeviewer/decompilers/bytecode/InstructionPrinter.java b/src/the/bytecode/club/bytecodeviewer/decompilers/bytecode/InstructionPrinter.java index f66a0776..b607152e 100644 --- a/src/the/bytecode/club/bytecodeviewer/decompilers/bytecode/InstructionPrinter.java +++ b/src/the/bytecode/club/bytecodeviewer/decompilers/bytecode/InstructionPrinter.java @@ -34,6 +34,24 @@ import org.objectweb.asm.tree.VarInsnNode; import the.bytecode.club.bytecodeviewer.BytecodeViewer; import eu.bibl.banalysis.asm.desc.OpcodeInfo; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * * @author Konloch @@ -259,7 +277,7 @@ public class InstructionPrinter { String line = nameOpcode(tin.opcode()) + " \n"; List labels = tin.labels; int count = 0; - for (int i = tin.min; i < tin.max; i++) { + for (int i = tin.min; i < tin.max+1; i++) { line += " val: " + i + " -> " + "L" + resolveLabel((LabelNode) labels.get(count++)) + "\n"; } diff --git a/src/the/bytecode/club/bytecodeviewer/decompilers/bytecode/InstructionSearcher.java b/src/the/bytecode/club/bytecodeviewer/decompilers/bytecode/InstructionSearcher.java index 94b05e30..3c562b60 100644 --- a/src/the/bytecode/club/bytecodeviewer/decompilers/bytecode/InstructionSearcher.java +++ b/src/the/bytecode/club/bytecodeviewer/decompilers/bytecode/InstructionSearcher.java @@ -9,6 +9,24 @@ import org.objectweb.asm.tree.FrameNode; import org.objectweb.asm.tree.InsnList; import org.objectweb.asm.tree.LineNumberNode; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * * @author Bibl diff --git a/src/the/bytecode/club/bytecodeviewer/decompilers/bytecode/MethodNodeDecompiler.java b/src/the/bytecode/club/bytecodeviewer/decompilers/bytecode/MethodNodeDecompiler.java index e6ec1b7d..94e72202 100644 --- a/src/the/bytecode/club/bytecodeviewer/decompilers/bytecode/MethodNodeDecompiler.java +++ b/src/the/bytecode/club/bytecodeviewer/decompilers/bytecode/MethodNodeDecompiler.java @@ -15,6 +15,24 @@ import org.objectweb.asm.tree.TryCatchBlockNode; import the.bytecode.club.bytecodeviewer.BytecodeViewer; import the.bytecode.club.bytecodeviewer.decompilers.bytecode.TypeAndName; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * * @author Konloch diff --git a/src/the/bytecode/club/bytecodeviewer/decompilers/bytecode/PrefixedStringBuilder.java b/src/the/bytecode/club/bytecodeviewer/decompilers/bytecode/PrefixedStringBuilder.java index 1a1dbb5b..bcb3b6ff 100644 --- a/src/the/bytecode/club/bytecodeviewer/decompilers/bytecode/PrefixedStringBuilder.java +++ b/src/the/bytecode/club/bytecodeviewer/decompilers/bytecode/PrefixedStringBuilder.java @@ -1,5 +1,23 @@ package the.bytecode.club.bytecodeviewer.decompilers.bytecode; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * * @author Bibl diff --git a/src/the/bytecode/club/bytecodeviewer/decompilers/bytecode/TypeAndName.java b/src/the/bytecode/club/bytecodeviewer/decompilers/bytecode/TypeAndName.java index d92347f9..a80c634c 100644 --- a/src/the/bytecode/club/bytecodeviewer/decompilers/bytecode/TypeAndName.java +++ b/src/the/bytecode/club/bytecodeviewer/decompilers/bytecode/TypeAndName.java @@ -2,6 +2,24 @@ package the.bytecode.club.bytecodeviewer.decompilers.bytecode; import org.objectweb.asm.Type; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Container class for type and name. Used to pass arguments and local variables * around diff --git a/src/the/bytecode/club/bytecodeviewer/gui/AboutWindow.java b/src/the/bytecode/club/bytecodeviewer/gui/AboutWindow.java index a8351099..6dd5dcc0 100644 --- a/src/the/bytecode/club/bytecodeviewer/gui/AboutWindow.java +++ b/src/the/bytecode/club/bytecodeviewer/gui/AboutWindow.java @@ -14,6 +14,24 @@ import the.bytecode.club.bytecodeviewer.Resources; import java.awt.Color; import javax.swing.JScrollPane; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * The about frame. * diff --git a/src/the/bytecode/club/bytecodeviewer/gui/ClassViewer.java b/src/the/bytecode/club/bytecodeviewer/gui/ClassViewer.java index 736efd66..700f31b7 100644 --- a/src/the/bytecode/club/bytecodeviewer/gui/ClassViewer.java +++ b/src/the/bytecode/club/bytecodeviewer/gui/ClassViewer.java @@ -21,6 +21,7 @@ import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JSplitPane; import javax.swing.JTextField; +import javax.swing.SwingUtilities; import javax.swing.text.AbstractDocument; import javax.swing.text.BoxView; import javax.swing.text.ComponentView; @@ -49,6 +50,24 @@ import the.bytecode.club.bytecodeviewer.BytecodeViewer; import the.bytecode.club.bytecodeviewer.Resources; import the.bytecode.club.bytecodeviewer.decompilers.Decompiler; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * This represents the opened classfile. * @@ -620,7 +639,7 @@ public class ClassViewer extends Viewer { .setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA); panelArea.setCodeFoldingEnabled(true); panelArea.setAntiAliasingEnabled(true); - RTextScrollPane scrollPane = new RTextScrollPane(panelArea); + final RTextScrollPane scrollPane = new RTextScrollPane(panelArea); panelArea.setText(Decompiler.procyon.decompileClassNode(cn,b)); panelArea.setCaretPosition(0); panelArea.setEditable(isPanel1Editable()); @@ -637,9 +656,14 @@ public class ClassViewer extends Viewer { @Override public void keyTyped(KeyEvent arg0) { } }); scrollPane.setColumnHeaderView(new JLabel("Procyon Decompiler - Editable: " + panelArea.isEditable())); - panel1.add(scrollPane); panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue())); + SwingUtilities.invokeLater(new Runnable() { + public void run() { + panel1.add(scrollPane); + } + }); + java1 = panelArea; } @@ -648,7 +672,7 @@ public class ClassViewer extends Viewer { panelArea.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA); panelArea.setCodeFoldingEnabled(true); panelArea.setAntiAliasingEnabled(true); - RTextScrollPane scrollPane = new RTextScrollPane(panelArea); + final RTextScrollPane scrollPane = new RTextScrollPane(panelArea); panelArea.setText(Decompiler.cfr.decompileClassNode(cn,b)); panelArea.setCaretPosition(0); panelArea.setEditable(isPanel1Editable()); @@ -664,8 +688,13 @@ public class ClassViewer extends Viewer { @Override public void keyTyped(KeyEvent arg0) { } }); scrollPane.setColumnHeaderView(new JLabel("CFR Decompiler - Editable: " + panelArea.isEditable())); - panel1.add(scrollPane); panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue())); + + SwingUtilities.invokeLater(new Runnable() { + public void run() { + panel1.add(scrollPane); + } + }); java1 = panelArea; } @@ -676,7 +705,7 @@ public class ClassViewer extends Viewer { .setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA); panelArea.setCodeFoldingEnabled(true); panelArea.setAntiAliasingEnabled(true); - RTextScrollPane scrollPane = new RTextScrollPane(panelArea); + final RTextScrollPane scrollPane = new RTextScrollPane(panelArea); panelArea.setText(Decompiler.fernflower.decompileClassNode(cn,b)); panelArea.setCaretPosition(0); panelArea.setEditable(isPanel1Editable()); @@ -692,9 +721,14 @@ public class ClassViewer extends Viewer { @Override public void keyTyped(KeyEvent arg0) { } }); scrollPane.setColumnHeaderView(new JLabel("FernFlower Decompiler - Editable: " + panelArea.isEditable())); - panel1.add(scrollPane); panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue())); + SwingUtilities.invokeLater(new Runnable() { + public void run() { + panel1.add(scrollPane); + } + }); + java1 = panelArea; } @@ -704,7 +738,7 @@ public class ClassViewer extends Viewer { .setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA); panelArea.setCodeFoldingEnabled(true); panelArea.setAntiAliasingEnabled(true); - RTextScrollPane scrollPane = new RTextScrollPane( + final RTextScrollPane scrollPane = new RTextScrollPane( panelArea); panelArea.setText(Decompiler.bytecode.decompileClassNode(cn,b)); panelArea.setCaretPosition(0); @@ -721,17 +755,27 @@ public class ClassViewer extends Viewer { @Override public void keyTyped(KeyEvent arg0) { } }); scrollPane.setColumnHeaderView(new JLabel("Bytecode Decompiler - Editable: " + panelArea.isEditable())); - panel1.add(scrollPane); panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue())); + SwingUtilities.invokeLater(new Runnable() { + public void run() { + panel1.add(scrollPane); + } + }); + } if (pane1 == 5) {// hex final ClassWriter cw = new ClassWriter(0); cn.accept(cw); - JHexEditor hex = new JHexEditor(cw.toByteArray()); - panel1.add(hex); + final JHexEditor hex = new JHexEditor(cw.toByteArray()); hex.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue())); + + SwingUtilities.invokeLater(new Runnable() { + public void run() { + panel1.add(hex); + } + }); } if (pane1 == 6) {//smali bytecode @@ -740,7 +784,7 @@ public class ClassViewer extends Viewer { .setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA); panelArea.setCodeFoldingEnabled(true); panelArea.setAntiAliasingEnabled(true); - RTextScrollPane scrollPane = new RTextScrollPane( + final RTextScrollPane scrollPane = new RTextScrollPane( panelArea); panelArea.setText(Decompiler.smali.decompileClassNode(cn,b)); panelArea.setCaretPosition(0); @@ -758,8 +802,13 @@ public class ClassViewer extends Viewer { @Override public void keyTyped(KeyEvent arg0) { } }); scrollPane.setColumnHeaderView(new JLabel("Smali Decompiler - Editable: " + panelArea.isEditable())); - panel1.add(scrollPane); panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue())); + + SwingUtilities.invokeLater(new Runnable() { + public void run() { + panel1.add(scrollPane); + } + }); } @@ -769,7 +818,7 @@ public class ClassViewer extends Viewer { .setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA); panelArea.setCodeFoldingEnabled(true); panelArea.setAntiAliasingEnabled(true); - RTextScrollPane scrollPane = new RTextScrollPane( + final RTextScrollPane scrollPane = new RTextScrollPane( panelArea); panelArea.setText(Decompiler.krakatau.decompileClassNode(cn,b)); panelArea.setCaretPosition(0); @@ -786,9 +835,14 @@ public class ClassViewer extends Viewer { @Override public void keyTyped(KeyEvent arg0) { } }); scrollPane.setColumnHeaderView(new JLabel("Krakatau Decompiler - Editable: " + panelArea.isEditable())); - panel1.add(scrollPane); panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue())); + SwingUtilities.invokeLater(new Runnable() { + public void run() { + panel1.add(scrollPane); + } + }); + java1 = panelArea; } @@ -800,7 +854,7 @@ public class ClassViewer extends Viewer { .setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA); panelArea.setCodeFoldingEnabled(true); panelArea.setAntiAliasingEnabled(true); - RTextScrollPane scrollPane = new RTextScrollPane( + final RTextScrollPane scrollPane = new RTextScrollPane( panelArea); panelArea.setText(Decompiler.krakatauDA.decompileClassNode(cn,b)); panelArea.setCaretPosition(0); @@ -818,8 +872,13 @@ public class ClassViewer extends Viewer { @Override public void keyTyped(KeyEvent arg0) { } }); scrollPane.setColumnHeaderView(new JLabel("Krakatau Disassembler - Editable: " + panelArea.isEditable())); - panel1.add(scrollPane); panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue())); + + SwingUtilities.invokeLater(new Runnable() { + public void run() { + panel1.add(scrollPane); + } + }); } @@ -829,7 +888,7 @@ public class ClassViewer extends Viewer { .setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA); panelArea.setCodeFoldingEnabled(true); panelArea.setAntiAliasingEnabled(true); - RTextScrollPane scrollPane = new RTextScrollPane( + final RTextScrollPane scrollPane = new RTextScrollPane( panelArea); panelArea.setText(Decompiler.jdgui.decompileClassNode(cn,b)); panelArea.setCaretPosition(0); @@ -846,8 +905,13 @@ public class ClassViewer extends Viewer { @Override public void keyTyped(KeyEvent arg0) { } }); scrollPane.setColumnHeaderView(new JLabel("JD-GUI Decompiler - Editable: " + panelArea.isEditable())); - panel1.add(scrollPane); panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue())); + + SwingUtilities.invokeLater(new Runnable() { + public void run() { + panel1.add(scrollPane); + } + }); java1 = panelArea; } @@ -875,7 +939,7 @@ public class ClassViewer extends Viewer { .setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA); panelArea.setCodeFoldingEnabled(true); panelArea.setAntiAliasingEnabled(true); - RTextScrollPane scrollPane = new RTextScrollPane(panelArea); + final RTextScrollPane scrollPane = new RTextScrollPane(panelArea); panelArea.setText(Decompiler.procyon.decompileClassNode(cn,b)); panelArea.setCaretPosition(0); panelArea.setEditable(isPanel2Editable()); @@ -891,8 +955,13 @@ public class ClassViewer extends Viewer { @Override public void keyTyped(KeyEvent arg0) { } }); scrollPane.setColumnHeaderView(new JLabel("Procyon Decompiler - Editable: " + panelArea.isEditable())); - panel2.add(scrollPane); panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue())); + + SwingUtilities.invokeLater(new Runnable() { + public void run() { + panel2.add(scrollPane); + } + }); java2 = panelArea; } @@ -903,7 +972,7 @@ public class ClassViewer extends Viewer { .setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA); panelArea.setCodeFoldingEnabled(true); panelArea.setAntiAliasingEnabled(true); - RTextScrollPane scrollPane = new RTextScrollPane(panelArea); + final RTextScrollPane scrollPane = new RTextScrollPane(panelArea); panelArea.setText(Decompiler.cfr.decompileClassNode(cn,b)); panelArea.setCaretPosition(0); panelArea.setEditable(isPanel2Editable()); @@ -919,8 +988,13 @@ public class ClassViewer extends Viewer { @Override public void keyTyped(KeyEvent arg0) { } }); scrollPane.setColumnHeaderView(new JLabel("CFR Decompiler - Editable: " + panelArea.isEditable())); - panel2.add(scrollPane); panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue())); + + SwingUtilities.invokeLater(new Runnable() { + public void run() { + panel2.add(scrollPane); + } + }); java2 = panelArea; } @@ -931,7 +1005,7 @@ public class ClassViewer extends Viewer { .setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA); panelArea.setCodeFoldingEnabled(true); panelArea.setAntiAliasingEnabled(true); - RTextScrollPane scrollPane = new RTextScrollPane(panelArea); + final RTextScrollPane scrollPane = new RTextScrollPane(panelArea); panelArea.setText(Decompiler.fernflower.decompileClassNode(cn,b)); panelArea.setCaretPosition(0); panelArea.setEditable(isPanel2Editable()); @@ -947,8 +1021,13 @@ public class ClassViewer extends Viewer { @Override public void keyTyped(KeyEvent arg0) { } }); scrollPane.setColumnHeaderView(new JLabel("FernFlower Decompiler - Editable: " + panelArea.isEditable())); - panel2.add(scrollPane); panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue())); + + SwingUtilities.invokeLater(new Runnable() { + public void run() { + panel2.add(scrollPane); + } + }); java2 = panelArea; } @@ -958,7 +1037,7 @@ public class ClassViewer extends Viewer { panelArea.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA); panelArea.setCodeFoldingEnabled(true); panelArea.setAntiAliasingEnabled(true); - RTextScrollPane scrollPane = new RTextScrollPane(panelArea); + final RTextScrollPane scrollPane = new RTextScrollPane(panelArea); panelArea.setText(Decompiler.bytecode.decompileClassNode(cn,b)); panelArea.setCaretPosition(0); panelArea.setEditable(false); @@ -974,18 +1053,27 @@ public class ClassViewer extends Viewer { @Override public void keyTyped(KeyEvent arg0) { } }); scrollPane.setColumnHeaderView(new JLabel("Bytecode Decompiler - Editable: " + panelArea.isEditable())); - panel2.add(scrollPane); panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue())); + + SwingUtilities.invokeLater(new Runnable() { + public void run() { + panel2.add(scrollPane); + } + }); } if (pane2 == 5) { final ClassWriter cw = new ClassWriter(0); cn.accept(cw); - JHexEditor hex = new JHexEditor(cw.toByteArray()); - panel2.add(hex); + final JHexEditor hex = new JHexEditor(cw.toByteArray()); hex.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue())); - + + SwingUtilities.invokeLater(new Runnable() { + public void run() { + panel2.add(hex); + } + }); } if (pane2 == 6) { @@ -993,7 +1081,7 @@ public class ClassViewer extends Viewer { panelArea.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA); panelArea.setCodeFoldingEnabled(true); panelArea.setAntiAliasingEnabled(true); - RTextScrollPane scrollPane = new RTextScrollPane(panelArea); + final RTextScrollPane scrollPane = new RTextScrollPane(panelArea); panelArea.setText(Decompiler.smali.decompileClassNode(cn,b)); panelArea.setCaretPosition(0); panelArea.setEditable(isPanel2Editable()); @@ -1010,8 +1098,13 @@ public class ClassViewer extends Viewer { @Override public void keyTyped(KeyEvent arg0) { } }); scrollPane.setColumnHeaderView(new JLabel("Smali Decompiler - Editable: " + panelArea.isEditable())); - panel2.add(scrollPane); panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue())); + + SwingUtilities.invokeLater(new Runnable() { + public void run() { + panel2.add(scrollPane); + } + }); } @@ -1021,7 +1114,7 @@ public class ClassViewer extends Viewer { .setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA); panelArea.setCodeFoldingEnabled(true); panelArea.setAntiAliasingEnabled(true); - RTextScrollPane scrollPane = new RTextScrollPane( + final RTextScrollPane scrollPane = new RTextScrollPane( panelArea); panelArea.setText(Decompiler.krakatau.decompileClassNode(cn,b)); panelArea.setCaretPosition(0); @@ -1038,8 +1131,13 @@ public class ClassViewer extends Viewer { @Override public void keyTyped(KeyEvent arg0) { } }); scrollPane.setColumnHeaderView(new JLabel("Krakatau Decompiler - Editable: " + panelArea.isEditable())); - panel2.add(scrollPane); panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue())); + + SwingUtilities.invokeLater(new Runnable() { + public void run() { + panel2.add(scrollPane); + } + }); java2 = panelArea; } @@ -1050,7 +1148,7 @@ public class ClassViewer extends Viewer { .setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA); panelArea.setCodeFoldingEnabled(true); panelArea.setAntiAliasingEnabled(true); - RTextScrollPane scrollPane = new RTextScrollPane( + final RTextScrollPane scrollPane = new RTextScrollPane( panelArea); panelArea.setText(Decompiler.krakatauDA.decompileClassNode(cn,b)); panelArea.setCaretPosition(0); @@ -1068,8 +1166,13 @@ public class ClassViewer extends Viewer { @Override public void keyTyped(KeyEvent arg0) { } }); scrollPane.setColumnHeaderView(new JLabel("Krakatau Disassembler")); - panel2.add(scrollPane); panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue())); + + SwingUtilities.invokeLater(new Runnable() { + public void run() { + panel2.add(scrollPane); + } + }); } @@ -1079,7 +1182,7 @@ public class ClassViewer extends Viewer { .setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA); panelArea.setCodeFoldingEnabled(true); panelArea.setAntiAliasingEnabled(true); - RTextScrollPane scrollPane = new RTextScrollPane( + final RTextScrollPane scrollPane = new RTextScrollPane( panelArea); panelArea.setText(Decompiler.jdgui.decompileClassNode(cn,b)); panelArea.setCaretPosition(0); @@ -1096,8 +1199,13 @@ public class ClassViewer extends Viewer { @Override public void keyTyped(KeyEvent arg0) { } }); scrollPane.setColumnHeaderView(new JLabel("JD-GUI Decompiler - Editable: " + panelArea.isEditable())); - panel2.add(scrollPane); panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue())); + + SwingUtilities.invokeLater(new Runnable() { + public void run() { + panel2.add(scrollPane); + } + }); java2 = panelArea; } @@ -1126,7 +1234,7 @@ public class ClassViewer extends Viewer { .setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA); panelArea.setCodeFoldingEnabled(true); panelArea.setAntiAliasingEnabled(true); - RTextScrollPane scrollPane = new RTextScrollPane(panelArea); + final RTextScrollPane scrollPane = new RTextScrollPane(panelArea); panelArea.setText(Decompiler.procyon.decompileClassNode(cn,b)); panelArea.setCaretPosition(0); panelArea.setEditable(isPanel3Editable()); @@ -1142,8 +1250,13 @@ public class ClassViewer extends Viewer { @Override public void keyTyped(KeyEvent arg0) { } }); scrollPane.setColumnHeaderView(new JLabel("Procyon Decompiler - Editable: " + panelArea.isEditable())); - panel3.add(scrollPane); panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue())); + + SwingUtilities.invokeLater(new Runnable() { + public void run() { + panel3.add(scrollPane); + } + }); java3 = panelArea; } @@ -1154,7 +1267,7 @@ public class ClassViewer extends Viewer { .setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA); panelArea.setCodeFoldingEnabled(true); panelArea.setAntiAliasingEnabled(true); - RTextScrollPane scrollPane = new RTextScrollPane(panelArea); + final RTextScrollPane scrollPane = new RTextScrollPane(panelArea); panelArea.setText(Decompiler.cfr.decompileClassNode(cn,b)); panelArea.setCaretPosition(0); panelArea.setEditable(isPanel3Editable()); @@ -1170,8 +1283,13 @@ public class ClassViewer extends Viewer { @Override public void keyTyped(KeyEvent arg0) { } }); scrollPane.setColumnHeaderView(new JLabel("CFR Decompiler - Editable: " + panelArea.isEditable())); - panel3.add(scrollPane); panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue())); + + SwingUtilities.invokeLater(new Runnable() { + public void run() { + panel3.add(scrollPane); + } + }); java3 = panelArea; } @@ -1182,7 +1300,7 @@ public class ClassViewer extends Viewer { .setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA); panelArea.setCodeFoldingEnabled(true); panelArea.setAntiAliasingEnabled(true); - RTextScrollPane scrollPane = new RTextScrollPane(panelArea); + final RTextScrollPane scrollPane = new RTextScrollPane(panelArea); panelArea.setText(Decompiler.fernflower.decompileClassNode(cn,b)); panelArea.setCaretPosition(0); panelArea.setEditable(isPanel3Editable()); @@ -1198,8 +1316,13 @@ public class ClassViewer extends Viewer { @Override public void keyTyped(KeyEvent arg0) { } }); scrollPane.setColumnHeaderView(new JLabel("FernFlower Decompiler - Editable: " + panelArea.isEditable())); - panel3.add(scrollPane); panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue())); + + SwingUtilities.invokeLater(new Runnable() { + public void run() { + panel3.add(scrollPane); + } + }); java3 = panelArea; } @@ -1209,7 +1332,7 @@ public class ClassViewer extends Viewer { panelArea.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA); panelArea.setCodeFoldingEnabled(true); panelArea.setAntiAliasingEnabled(true); - RTextScrollPane scrollPane = new RTextScrollPane(panelArea); + final RTextScrollPane scrollPane = new RTextScrollPane(panelArea); panelArea.setText(Decompiler.bytecode.decompileClassNode(cn,b)); panelArea.setCaretPosition(0); panelArea.setEditable(false); @@ -1225,17 +1348,26 @@ public class ClassViewer extends Viewer { @Override public void keyTyped(KeyEvent arg0) { } }); scrollPane.setColumnHeaderView(new JLabel("Bytecode Decompiler - Editable: " + panelArea.isEditable())); - panel3.add(scrollPane); panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue())); + SwingUtilities.invokeLater(new Runnable() { + public void run() { + panel3.add(scrollPane); + } + }); } if (pane3 == 5) { final ClassWriter cw = new ClassWriter(0); cn.accept(cw); - JHexEditor hex = new JHexEditor(cw.toByteArray()); - panel3.add(hex); + final JHexEditor hex = new JHexEditor(cw.toByteArray()); hex.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue())); + + SwingUtilities.invokeLater(new Runnable() { + public void run() { + panel3.add(hex); + } + }); } @@ -1244,7 +1376,7 @@ public class ClassViewer extends Viewer { panelArea.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA); panelArea.setCodeFoldingEnabled(true); panelArea.setAntiAliasingEnabled(true); - RTextScrollPane scrollPane = new RTextScrollPane(panelArea); + final RTextScrollPane scrollPane = new RTextScrollPane(panelArea); panelArea.setText(Decompiler.smali.decompileClassNode(cn,b)); panelArea.setCaretPosition(0); panelArea.setEditable(isPanel3Editable()); @@ -1261,8 +1393,13 @@ public class ClassViewer extends Viewer { @Override public void keyTyped(KeyEvent arg0) { } }); scrollPane.setColumnHeaderView(new JLabel("Smali Decompiler - Editable: " + panelArea.isEditable())); - panel3.add(scrollPane); panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue())); + + SwingUtilities.invokeLater(new Runnable() { + public void run() { + panel3.add(scrollPane); + } + }); } @@ -1272,7 +1409,7 @@ public class ClassViewer extends Viewer { .setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA); panelArea.setCodeFoldingEnabled(true); panelArea.setAntiAliasingEnabled(true); - RTextScrollPane scrollPane = new RTextScrollPane( + final RTextScrollPane scrollPane = new RTextScrollPane( panelArea); panelArea.setText(Decompiler.krakatau.decompileClassNode(cn,b)); panelArea.setCaretPosition(0); @@ -1289,10 +1426,14 @@ public class ClassViewer extends Viewer { @Override public void keyTyped(KeyEvent arg0) { } }); scrollPane.setColumnHeaderView(new JLabel("Krakatau Decompiler - Editable: " + panelArea.isEditable())); - panel3.add(scrollPane); java3 = panelArea; panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue())); - + + SwingUtilities.invokeLater(new Runnable() { + public void run() { + panel3.add(scrollPane); + } + }); } if (pane3 == 8) {// kraktau bytecode @@ -1301,7 +1442,7 @@ public class ClassViewer extends Viewer { .setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA); panelArea.setCodeFoldingEnabled(true); panelArea.setAntiAliasingEnabled(true); - RTextScrollPane scrollPane = new RTextScrollPane( + final RTextScrollPane scrollPane = new RTextScrollPane( panelArea); panelArea.setText(Decompiler.krakatauDA.decompileClassNode(cn,b)); panelArea.setCaretPosition(0); @@ -1319,8 +1460,13 @@ public class ClassViewer extends Viewer { @Override public void keyTyped(KeyEvent arg0) { } }); scrollPane.setColumnHeaderView(new JLabel("Krakatau Disassembler")); - panel3.add(scrollPane); panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue())); + + SwingUtilities.invokeLater(new Runnable() { + public void run() { + panel3.add(scrollPane); + } + }); } @@ -1330,7 +1476,7 @@ public class ClassViewer extends Viewer { .setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA); panelArea.setCodeFoldingEnabled(true); panelArea.setAntiAliasingEnabled(true); - RTextScrollPane scrollPane = new RTextScrollPane( + final RTextScrollPane scrollPane = new RTextScrollPane( panelArea); panelArea.setText(Decompiler.jdgui.decompileClassNode(cn,b)); panelArea.setCaretPosition(0); @@ -1347,10 +1493,14 @@ public class ClassViewer extends Viewer { @Override public void keyTyped(KeyEvent arg0) { } }); scrollPane.setColumnHeaderView(new JLabel("JD-GUI Decompiler - Editable: " + panelArea.isEditable())); - panel3.add(scrollPane); java3 = panelArea; panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue())); + SwingUtilities.invokeLater(new Runnable() { + public void run() { + panel3.add(scrollPane); + } + }); } } catch(java.lang.IndexOutOfBoundsException | java.lang.NullPointerException e) { //ignore diff --git a/src/the/bytecode/club/bytecodeviewer/gui/ExportJar.java b/src/the/bytecode/club/bytecodeviewer/gui/ExportJar.java index 59d96a75..7749d23b 100644 --- a/src/the/bytecode/club/bytecodeviewer/gui/ExportJar.java +++ b/src/the/bytecode/club/bytecodeviewer/gui/ExportJar.java @@ -15,6 +15,24 @@ import javax.swing.JScrollPane; import javax.swing.JLabel; import javax.swing.JTextArea; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * The export as Jar UI. * diff --git a/src/the/bytecode/club/bytecodeviewer/gui/FileNavigationPane.java b/src/the/bytecode/club/bytecodeviewer/gui/FileNavigationPane.java index 0b6197df..8c9be22d 100644 --- a/src/the/bytecode/club/bytecodeviewer/gui/FileNavigationPane.java +++ b/src/the/bytecode/club/bytecodeviewer/gui/FileNavigationPane.java @@ -43,6 +43,24 @@ import org.objectweb.asm.tree.ClassNode; import the.bytecode.club.bytecodeviewer.*; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * The file navigation pane. * diff --git a/src/the/bytecode/club/bytecodeviewer/gui/FileViewer.java b/src/the/bytecode/club/bytecodeviewer/gui/FileViewer.java index bcb2dc14..d1082ed2 100644 --- a/src/the/bytecode/club/bytecodeviewer/gui/FileViewer.java +++ b/src/the/bytecode/club/bytecodeviewer/gui/FileViewer.java @@ -36,6 +36,24 @@ import com.jhe.hexed.JHexEditor; import the.bytecode.club.bytecodeviewer.BytecodeViewer; import the.bytecode.club.bytecodeviewer.Resources; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Represents any open non-class file. * diff --git a/src/the/bytecode/club/bytecodeviewer/gui/GraphicialReflectionKit.java b/src/the/bytecode/club/bytecodeviewer/gui/GraphicialReflectionKit.java index c7463aa0..6ca41e87 100644 --- a/src/the/bytecode/club/bytecodeviewer/gui/GraphicialReflectionKit.java +++ b/src/the/bytecode/club/bytecodeviewer/gui/GraphicialReflectionKit.java @@ -8,6 +8,24 @@ import javax.swing.JPanel; import the.bytecode.club.bytecodeviewer.Resources; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * A graphical way to execute reflection. * diff --git a/src/the/bytecode/club/bytecodeviewer/gui/MainViewerGUI.java b/src/the/bytecode/club/bytecodeviewer/gui/MainViewerGUI.java index 65615434..22164216 100644 --- a/src/the/bytecode/club/bytecodeviewer/gui/MainViewerGUI.java +++ b/src/the/bytecode/club/bytecodeviewer/gui/MainViewerGUI.java @@ -57,6 +57,24 @@ import the.bytecode.club.bytecodeviewer.plugin.preinstalled.ZStringArrayDecrypte import javax.swing.JSpinner; import javax.swing.SpinnerNumberModel; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * The main file for the GUI.n * @@ -134,7 +152,7 @@ public class MainViewerGUI extends JFrame implements FileChangeNotifier { if (returnVal == JFileChooser.APPROVE_OPTION) try { - BytecodeViewer.javac = fc.getSelectedFile().getAbsolutePath(); + BytecodeViewer.java = fc.getSelectedFile().getAbsolutePath(); } catch (Exception e1) { new the.bytecode.club.bytecodeviewer.api.ExceptionUI(e1); } diff --git a/src/the/bytecode/club/bytecodeviewer/gui/MaliciousCodeScannerOptions.java b/src/the/bytecode/club/bytecodeviewer/gui/MaliciousCodeScannerOptions.java index ee067f78..3d4f0cfa 100644 --- a/src/the/bytecode/club/bytecodeviewer/gui/MaliciousCodeScannerOptions.java +++ b/src/the/bytecode/club/bytecodeviewer/gui/MaliciousCodeScannerOptions.java @@ -14,6 +14,24 @@ import the.bytecode.club.bytecodeviewer.plugin.preinstalled.MaliciousCodeScanner import java.awt.event.ActionListener; import java.awt.event.ActionEvent; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * A simple GUI to select the Malicious Code Scanner options. * diff --git a/src/the/bytecode/club/bytecodeviewer/gui/PaneUpdaterThread.java b/src/the/bytecode/club/bytecodeviewer/gui/PaneUpdaterThread.java index 8d86fc03..599b5437 100644 --- a/src/the/bytecode/club/bytecodeviewer/gui/PaneUpdaterThread.java +++ b/src/the/bytecode/club/bytecodeviewer/gui/PaneUpdaterThread.java @@ -1,5 +1,23 @@ package the.bytecode.club.bytecodeviewer.gui; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Allows us to run a background thread * diff --git a/src/the/bytecode/club/bytecodeviewer/gui/ReplaceStringsOptions.java b/src/the/bytecode/club/bytecodeviewer/gui/ReplaceStringsOptions.java index cf63fdee..7ff27eab 100644 --- a/src/the/bytecode/club/bytecodeviewer/gui/ReplaceStringsOptions.java +++ b/src/the/bytecode/club/bytecodeviewer/gui/ReplaceStringsOptions.java @@ -16,6 +16,24 @@ import java.awt.event.ActionEvent; import javax.swing.JCheckBox; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * The UI for replace strings plugin. * diff --git a/src/the/bytecode/club/bytecodeviewer/gui/RunOptions.java b/src/the/bytecode/club/bytecodeviewer/gui/RunOptions.java index 9d3f5a1d..39f41a26 100644 --- a/src/the/bytecode/club/bytecodeviewer/gui/RunOptions.java +++ b/src/the/bytecode/club/bytecodeviewer/gui/RunOptions.java @@ -22,6 +22,24 @@ import org.objectweb.asm.tree.MethodNode; import javax.swing.JLabel; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * The UI for File>Run aka EZ-Injection plugin. * diff --git a/src/the/bytecode/club/bytecodeviewer/gui/SearchingPane.java b/src/the/bytecode/club/bytecodeviewer/gui/SearchingPane.java index f30f4b8c..802c8e08 100644 --- a/src/the/bytecode/club/bytecodeviewer/gui/SearchingPane.java +++ b/src/the/bytecode/club/bytecodeviewer/gui/SearchingPane.java @@ -27,6 +27,24 @@ import org.objectweb.asm.tree.ClassNode; import the.bytecode.club.bytecodeviewer.*; import the.bytecode.club.bytecodeviewer.searching.*; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * A pane dedicating to searching the loaded files. * diff --git a/src/the/bytecode/club/bytecodeviewer/gui/SystemErrConsole.java b/src/the/bytecode/club/bytecodeviewer/gui/SystemErrConsole.java index 723417fb..2f056f73 100644 --- a/src/the/bytecode/club/bytecodeviewer/gui/SystemErrConsole.java +++ b/src/the/bytecode/club/bytecodeviewer/gui/SystemErrConsole.java @@ -29,6 +29,24 @@ import javax.swing.text.DefaultHighlighter; import javax.swing.text.Highlighter; import javax.swing.text.JTextComponent; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * A simple console GUI. * diff --git a/src/the/bytecode/club/bytecodeviewer/gui/TabbedPane.java b/src/the/bytecode/club/bytecodeviewer/gui/TabbedPane.java index b4618ae0..acf87130 100644 --- a/src/the/bytecode/club/bytecodeviewer/gui/TabbedPane.java +++ b/src/the/bytecode/club/bytecodeviewer/gui/TabbedPane.java @@ -23,6 +23,24 @@ import javax.swing.JPopupMenu; import javax.swing.JTabbedPane; import javax.swing.plaf.basic.BasicButtonUI; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Component to be used as tabComponent; Contains a JLabel to show the text and * a JButton to close the tab it belongs to diff --git a/src/the/bytecode/club/bytecodeviewer/gui/Viewer.java b/src/the/bytecode/club/bytecodeviewer/gui/Viewer.java index 5672aac9..f0263065 100644 --- a/src/the/bytecode/club/bytecodeviewer/gui/Viewer.java +++ b/src/the/bytecode/club/bytecodeviewer/gui/Viewer.java @@ -3,6 +3,24 @@ package the.bytecode.club.bytecodeviewer.gui; import javax.swing.JPanel; import org.objectweb.asm.tree.ClassNode; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + public abstract class Viewer extends JPanel { public ClassNode cn; diff --git a/src/the/bytecode/club/bytecodeviewer/gui/VisibleComponent.java b/src/the/bytecode/club/bytecodeviewer/gui/VisibleComponent.java index 9fed32de..2ec8e322 100644 --- a/src/the/bytecode/club/bytecodeviewer/gui/VisibleComponent.java +++ b/src/the/bytecode/club/bytecodeviewer/gui/VisibleComponent.java @@ -6,6 +6,24 @@ import org.objectweb.asm.tree.ClassNode; import the.bytecode.club.bytecodeviewer.FileChangeNotifier; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Used to represent all the panes inside of Bytecode Viewer, this is temp code * that was included from porting in J-RET, this needs to be re-written. diff --git a/src/the/bytecode/club/bytecodeviewer/gui/WorkPane.java b/src/the/bytecode/club/bytecodeviewer/gui/WorkPane.java index e4fb13f8..f4ac4880 100644 --- a/src/the/bytecode/club/bytecodeviewer/gui/WorkPane.java +++ b/src/the/bytecode/club/bytecodeviewer/gui/WorkPane.java @@ -20,6 +20,24 @@ import org.objectweb.asm.tree.ClassNode; import the.bytecode.club.bytecodeviewer.BytecodeViewer; import the.bytecode.club.bytecodeviewer.FileChangeNotifier; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * The pane that contains all of the classes as tabs. * diff --git a/src/the/bytecode/club/bytecodeviewer/obfuscators/JavaObfuscator.java b/src/the/bytecode/club/bytecodeviewer/obfuscators/JavaObfuscator.java index a12342e0..2f71ee8c 100644 --- a/src/the/bytecode/club/bytecodeviewer/obfuscators/JavaObfuscator.java +++ b/src/the/bytecode/club/bytecodeviewer/obfuscators/JavaObfuscator.java @@ -5,6 +5,24 @@ import java.util.ArrayList; import the.bytecode.club.bytecodeviewer.BytecodeViewer; import the.bytecode.club.bytecodeviewer.MiscUtils; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * An unfinished obfuscator. * diff --git a/src/the/bytecode/club/bytecodeviewer/obfuscators/RenameClasses.java b/src/the/bytecode/club/bytecodeviewer/obfuscators/RenameClasses.java index 23ca59c1..f2968467 100644 --- a/src/the/bytecode/club/bytecodeviewer/obfuscators/RenameClasses.java +++ b/src/the/bytecode/club/bytecodeviewer/obfuscators/RenameClasses.java @@ -5,6 +5,24 @@ import org.objectweb.asm.tree.ClassNode; import the.bytecode.club.bytecodeviewer.BytecodeViewer; import the.bytecode.club.bytecodeviewer.api.ASMUtil_OLD; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Rename classes. * diff --git a/src/the/bytecode/club/bytecodeviewer/obfuscators/RenameFields.java b/src/the/bytecode/club/bytecodeviewer/obfuscators/RenameFields.java index 5be456ae..42471d54 100644 --- a/src/the/bytecode/club/bytecodeviewer/obfuscators/RenameFields.java +++ b/src/the/bytecode/club/bytecodeviewer/obfuscators/RenameFields.java @@ -6,6 +6,24 @@ import org.objectweb.asm.tree.FieldNode; import the.bytecode.club.bytecodeviewer.BytecodeViewer; import the.bytecode.club.bytecodeviewer.api.ASMUtil_OLD; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Rename fields. * diff --git a/src/the/bytecode/club/bytecodeviewer/obfuscators/RenameMethods.java b/src/the/bytecode/club/bytecodeviewer/obfuscators/RenameMethods.java index cd4d01e4..c81a056d 100644 --- a/src/the/bytecode/club/bytecodeviewer/obfuscators/RenameMethods.java +++ b/src/the/bytecode/club/bytecodeviewer/obfuscators/RenameMethods.java @@ -7,6 +7,24 @@ import org.objectweb.asm.tree.MethodNode; import the.bytecode.club.bytecodeviewer.BytecodeViewer; import the.bytecode.club.bytecodeviewer.api.ASMUtil_OLD; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Rename methods. * diff --git a/src/the/bytecode/club/bytecodeviewer/obfuscators/mapping/HookMap.java b/src/the/bytecode/club/bytecodeviewer/obfuscators/mapping/HookMap.java index 1803b137..b82b3985 100644 --- a/src/the/bytecode/club/bytecodeviewer/obfuscators/mapping/HookMap.java +++ b/src/the/bytecode/club/bytecodeviewer/obfuscators/mapping/HookMap.java @@ -7,6 +7,24 @@ import the.bytecode.club.bytecodeviewer.obfuscators.mapping.data.FieldMappingDat import the.bytecode.club.bytecodeviewer.obfuscators.mapping.data.MappingData; import the.bytecode.club.bytecodeviewer.obfuscators.mapping.data.MethodMappingData; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + public class HookMap { protected List classes; diff --git a/src/the/bytecode/club/bytecodeviewer/obfuscators/mapping/RefactorMapper.java b/src/the/bytecode/club/bytecodeviewer/obfuscators/mapping/RefactorMapper.java index 6e160ae3..b929185e 100644 --- a/src/the/bytecode/club/bytecodeviewer/obfuscators/mapping/RefactorMapper.java +++ b/src/the/bytecode/club/bytecodeviewer/obfuscators/mapping/RefactorMapper.java @@ -11,6 +11,24 @@ import the.bytecode.club.bytecodeviewer.obfuscators.mapping.data.FieldMappingDat import the.bytecode.club.bytecodeviewer.obfuscators.mapping.data.MappingData; import the.bytecode.club.bytecodeviewer.obfuscators.mapping.data.MethodMappingData; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * @author sc4re */ diff --git a/src/the/bytecode/club/bytecodeviewer/obfuscators/mapping/Refactorer.java b/src/the/bytecode/club/bytecodeviewer/obfuscators/mapping/Refactorer.java index 25d7fda1..19659659 100644 --- a/src/the/bytecode/club/bytecodeviewer/obfuscators/mapping/Refactorer.java +++ b/src/the/bytecode/club/bytecodeviewer/obfuscators/mapping/Refactorer.java @@ -10,6 +10,24 @@ import org.objectweb.asm.tree.ClassNode; import the.bytecode.club.bytecodeviewer.BytecodeViewer; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * @author sc4re */ diff --git a/src/the/bytecode/club/bytecodeviewer/obfuscators/mapping/data/FieldMappingData.java b/src/the/bytecode/club/bytecodeviewer/obfuscators/mapping/data/FieldMappingData.java index 25d2ffdb..52790a52 100644 --- a/src/the/bytecode/club/bytecodeviewer/obfuscators/mapping/data/FieldMappingData.java +++ b/src/the/bytecode/club/bytecodeviewer/obfuscators/mapping/data/FieldMappingData.java @@ -1,5 +1,22 @@ package the.bytecode.club.bytecodeviewer.obfuscators.mapping.data; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ public class FieldMappingData { diff --git a/src/the/bytecode/club/bytecodeviewer/obfuscators/mapping/data/MappingData.java b/src/the/bytecode/club/bytecodeviewer/obfuscators/mapping/data/MappingData.java index 3d2f18b3..5c70bb12 100644 --- a/src/the/bytecode/club/bytecodeviewer/obfuscators/mapping/data/MappingData.java +++ b/src/the/bytecode/club/bytecodeviewer/obfuscators/mapping/data/MappingData.java @@ -1,5 +1,23 @@ package the.bytecode.club.bytecodeviewer.obfuscators.mapping.data; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + public class MappingData { protected String obfuscatedName; diff --git a/src/the/bytecode/club/bytecodeviewer/obfuscators/mapping/data/MethodMappingData.java b/src/the/bytecode/club/bytecodeviewer/obfuscators/mapping/data/MethodMappingData.java index 635c7966..feca07ba 100644 --- a/src/the/bytecode/club/bytecodeviewer/obfuscators/mapping/data/MethodMappingData.java +++ b/src/the/bytecode/club/bytecodeviewer/obfuscators/mapping/data/MethodMappingData.java @@ -1,5 +1,22 @@ package the.bytecode.club.bytecodeviewer.obfuscators.mapping.data; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ public class MethodMappingData { diff --git a/src/the/bytecode/club/bytecodeviewer/obfuscators/rename/RenameClasses.java b/src/the/bytecode/club/bytecodeviewer/obfuscators/rename/RenameClasses.java index 0ca7f488..e16e0e36 100644 --- a/src/the/bytecode/club/bytecodeviewer/obfuscators/rename/RenameClasses.java +++ b/src/the/bytecode/club/bytecodeviewer/obfuscators/rename/RenameClasses.java @@ -8,6 +8,24 @@ import the.bytecode.club.bytecodeviewer.BytecodeViewer; import the.bytecode.club.bytecodeviewer.obfuscators.JavaObfuscator; import the.bytecode.club.bytecodeviewer.obfuscators.mapping.data.MappingData; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Rename classes. * diff --git a/src/the/bytecode/club/bytecodeviewer/obfuscators/rename/RenameFields.java b/src/the/bytecode/club/bytecodeviewer/obfuscators/rename/RenameFields.java index e648735b..cd3e3033 100644 --- a/src/the/bytecode/club/bytecodeviewer/obfuscators/rename/RenameFields.java +++ b/src/the/bytecode/club/bytecodeviewer/obfuscators/rename/RenameFields.java @@ -8,6 +8,24 @@ import the.bytecode.club.bytecodeviewer.obfuscators.JavaObfuscator; import the.bytecode.club.bytecodeviewer.obfuscators.mapping.data.FieldMappingData; import the.bytecode.club.bytecodeviewer.obfuscators.mapping.data.MappingData; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Rename fields. * diff --git a/src/the/bytecode/club/bytecodeviewer/obfuscators/rename/RenameMethods.java b/src/the/bytecode/club/bytecodeviewer/obfuscators/rename/RenameMethods.java index 3cc29c72..46c31ef2 100644 --- a/src/the/bytecode/club/bytecodeviewer/obfuscators/rename/RenameMethods.java +++ b/src/the/bytecode/club/bytecodeviewer/obfuscators/rename/RenameMethods.java @@ -9,6 +9,24 @@ import the.bytecode.club.bytecodeviewer.obfuscators.JavaObfuscator; import the.bytecode.club.bytecodeviewer.obfuscators.mapping.data.MappingData; import the.bytecode.club.bytecodeviewer.obfuscators.mapping.data.MethodMappingData; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Rename methods. * diff --git a/src/the/bytecode/club/bytecodeviewer/plugin/PluginLaunchStrategy.java b/src/the/bytecode/club/bytecodeviewer/plugin/PluginLaunchStrategy.java index 2eb6e650..b563b754 100644 --- a/src/the/bytecode/club/bytecodeviewer/plugin/PluginLaunchStrategy.java +++ b/src/the/bytecode/club/bytecodeviewer/plugin/PluginLaunchStrategy.java @@ -4,6 +4,24 @@ import java.io.File; import the.bytecode.club.bytecodeviewer.api.Plugin; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * @author Bibl (don't ban me pls) * @created 1 Jun 2015 diff --git a/src/the/bytecode/club/bytecodeviewer/plugin/PluginManager.java b/src/the/bytecode/club/bytecodeviewer/plugin/PluginManager.java index e5631108..2e9bfd81 100644 --- a/src/the/bytecode/club/bytecodeviewer/plugin/PluginManager.java +++ b/src/the/bytecode/club/bytecodeviewer/plugin/PluginManager.java @@ -16,6 +16,24 @@ import the.bytecode.club.bytecodeviewer.plugin.strategies.JavaPluginLaunchStrate import the.bytecode.club.bytecodeviewer.plugin.strategies.PythonPluginLaunchStrategy; import the.bytecode.club.bytecodeviewer.plugin.strategies.RubyPluginLaunchStrategy; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Supports loading of groovy, python or ruby scripts. * diff --git a/src/the/bytecode/club/bytecodeviewer/plugin/preinstalled/AllatoriStringDecrypter.java b/src/the/bytecode/club/bytecodeviewer/plugin/preinstalled/AllatoriStringDecrypter.java index 649601c0..a2dbed53 100644 --- a/src/the/bytecode/club/bytecodeviewer/plugin/preinstalled/AllatoriStringDecrypter.java +++ b/src/the/bytecode/club/bytecodeviewer/plugin/preinstalled/AllatoriStringDecrypter.java @@ -7,6 +7,24 @@ import org.objectweb.asm.tree.ClassNode; import the.bytecode.club.bytecodeviewer.BytecodeViewer; import the.bytecode.club.bytecodeviewer.api.Plugin; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Coming soon. * diff --git a/src/the/bytecode/club/bytecodeviewer/plugin/preinstalled/CodeSequenceDiagram.java b/src/the/bytecode/club/bytecodeviewer/plugin/preinstalled/CodeSequenceDiagram.java index cae128f9..dbac3fb8 100644 --- a/src/the/bytecode/club/bytecodeviewer/plugin/preinstalled/CodeSequenceDiagram.java +++ b/src/the/bytecode/club/bytecodeviewer/plugin/preinstalled/CodeSequenceDiagram.java @@ -21,6 +21,24 @@ import the.bytecode.club.bytecodeviewer.Resources; import the.bytecode.club.bytecodeviewer.api.Plugin; import the.bytecode.club.bytecodeviewer.gui.ClassViewer; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * A simple code sequence diagram. * diff --git a/src/the/bytecode/club/bytecodeviewer/plugin/preinstalled/EZInjection.java b/src/the/bytecode/club/bytecodeviewer/plugin/preinstalled/EZInjection.java index d67c50fd..3262fbc8 100644 --- a/src/the/bytecode/club/bytecodeviewer/plugin/preinstalled/EZInjection.java +++ b/src/the/bytecode/club/bytecodeviewer/plugin/preinstalled/EZInjection.java @@ -18,6 +18,24 @@ import the.bytecode.club.bytecodeviewer.api.Plugin; import the.bytecode.club.bytecodeviewer.api.PluginConsole; import the.bytecode.club.bytecodeviewer.gui.GraphicialReflectionKit; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * EZ Injection - This plugin is designed to provide a graphical way for the * user to easily change the access modifiers of all fields/methods, insert diff --git a/src/the/bytecode/club/bytecodeviewer/plugin/preinstalled/MaliciousCodeScanner.java b/src/the/bytecode/club/bytecodeviewer/plugin/preinstalled/MaliciousCodeScanner.java index b946fc1c..ab8d4a9d 100644 --- a/src/the/bytecode/club/bytecodeviewer/plugin/preinstalled/MaliciousCodeScanner.java +++ b/src/the/bytecode/club/bytecodeviewer/plugin/preinstalled/MaliciousCodeScanner.java @@ -16,6 +16,24 @@ import the.bytecode.club.bytecodeviewer.BytecodeViewer; import the.bytecode.club.bytecodeviewer.api.Plugin; import the.bytecode.club.bytecodeviewer.api.PluginConsole; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * The idea/core was based off of J-RET's Malicious Code Searcher I improved it, * and added more stuff to search for. diff --git a/src/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ReplaceStrings.java b/src/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ReplaceStrings.java index 5dc159a4..de016c56 100644 --- a/src/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ReplaceStrings.java +++ b/src/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ReplaceStrings.java @@ -12,6 +12,24 @@ import org.objectweb.asm.tree.MethodNode; import the.bytecode.club.bytecodeviewer.api.Plugin; import the.bytecode.club.bytecodeviewer.api.PluginConsole; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Replaces all string and string[] instances with whatever. * diff --git a/src/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ShowAllStrings.java b/src/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ShowAllStrings.java index 1889063f..098aba90 100644 --- a/src/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ShowAllStrings.java +++ b/src/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ShowAllStrings.java @@ -13,6 +13,24 @@ import the.bytecode.club.bytecodeviewer.BytecodeViewer; import the.bytecode.club.bytecodeviewer.api.Plugin; import the.bytecode.club.bytecodeviewer.api.PluginConsole; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Simply shows all the non-empty strings in every single class * diff --git a/src/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ShowMainMethods.java b/src/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ShowMainMethods.java index 21d09a2b..744358bf 100644 --- a/src/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ShowMainMethods.java +++ b/src/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ShowMainMethods.java @@ -8,6 +8,24 @@ import org.objectweb.asm.tree.MethodNode; import the.bytecode.club.bytecodeviewer.api.Plugin; import the.bytecode.club.bytecodeviewer.api.PluginConsole; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Simply shows all classes that have a public static void main(String[]) * diff --git a/src/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ZKMStringDecrypter.java b/src/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ZKMStringDecrypter.java index ce67e6d7..10c2baca 100644 --- a/src/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ZKMStringDecrypter.java +++ b/src/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ZKMStringDecrypter.java @@ -7,6 +7,24 @@ import the.bytecode.club.bytecodeviewer.api.Plugin; import java.util.ArrayList; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Coming soon * diff --git a/src/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ZStringArrayDecrypter.java b/src/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ZStringArrayDecrypter.java index 6f59875e..e30cd6ed 100644 --- a/src/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ZStringArrayDecrypter.java +++ b/src/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ZStringArrayDecrypter.java @@ -13,6 +13,24 @@ import java.util.ArrayList; import javax.swing.JDialog; import javax.swing.JOptionPane; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Runs the classes then simply grabs the static String[] z * diff --git a/src/the/bytecode/club/bytecodeviewer/plugin/strategies/CompiledJavaPluginLaunchStrategy.java b/src/the/bytecode/club/bytecodeviewer/plugin/strategies/CompiledJavaPluginLaunchStrategy.java index 6fb7270b..b9950492 100644 --- a/src/the/bytecode/club/bytecodeviewer/plugin/strategies/CompiledJavaPluginLaunchStrategy.java +++ b/src/the/bytecode/club/bytecodeviewer/plugin/strategies/CompiledJavaPluginLaunchStrategy.java @@ -16,6 +16,24 @@ import the.bytecode.club.bytecodeviewer.JarUtils; import the.bytecode.club.bytecodeviewer.api.Plugin; import the.bytecode.club.bytecodeviewer.plugin.PluginLaunchStrategy; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * @author Konloch * @author Bibl (don't ban me pls) diff --git a/src/the/bytecode/club/bytecodeviewer/plugin/strategies/GroovyPluginLaunchStrategy.java b/src/the/bytecode/club/bytecodeviewer/plugin/strategies/GroovyPluginLaunchStrategy.java index e405d8bd..8543b8d1 100644 --- a/src/the/bytecode/club/bytecodeviewer/plugin/strategies/GroovyPluginLaunchStrategy.java +++ b/src/the/bytecode/club/bytecodeviewer/plugin/strategies/GroovyPluginLaunchStrategy.java @@ -10,6 +10,24 @@ import javax.script.ScriptEngineManager; import the.bytecode.club.bytecodeviewer.api.Plugin; import the.bytecode.club.bytecodeviewer.plugin.PluginLaunchStrategy; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * @author Konloch * @author Bibl (don't ban me pls) diff --git a/src/the/bytecode/club/bytecodeviewer/plugin/strategies/JavaPluginLaunchStrategy.java b/src/the/bytecode/club/bytecodeviewer/plugin/strategies/JavaPluginLaunchStrategy.java index 3198483e..0bd27aaf 100644 --- a/src/the/bytecode/club/bytecodeviewer/plugin/strategies/JavaPluginLaunchStrategy.java +++ b/src/the/bytecode/club/bytecodeviewer/plugin/strategies/JavaPluginLaunchStrategy.java @@ -9,6 +9,24 @@ import org.codehaus.janino.SimpleCompiler; import the.bytecode.club.bytecodeviewer.api.Plugin; import the.bytecode.club.bytecodeviewer.plugin.PluginLaunchStrategy; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * @author Konloch * @author Bibl (don't ban me pls) diff --git a/src/the/bytecode/club/bytecodeviewer/plugin/strategies/PythonPluginLaunchStrategy.java b/src/the/bytecode/club/bytecodeviewer/plugin/strategies/PythonPluginLaunchStrategy.java index 391080c6..a9c063e3 100644 --- a/src/the/bytecode/club/bytecodeviewer/plugin/strategies/PythonPluginLaunchStrategy.java +++ b/src/the/bytecode/club/bytecodeviewer/plugin/strategies/PythonPluginLaunchStrategy.java @@ -10,6 +10,24 @@ import javax.script.ScriptEngineManager; import the.bytecode.club.bytecodeviewer.api.Plugin; import the.bytecode.club.bytecodeviewer.plugin.PluginLaunchStrategy; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * @author Konloch * @author Bibl (don't ban me pls) diff --git a/src/the/bytecode/club/bytecodeviewer/plugin/strategies/RubyPluginLaunchStrategy.java b/src/the/bytecode/club/bytecodeviewer/plugin/strategies/RubyPluginLaunchStrategy.java index 0fb03443..36247836 100644 --- a/src/the/bytecode/club/bytecodeviewer/plugin/strategies/RubyPluginLaunchStrategy.java +++ b/src/the/bytecode/club/bytecodeviewer/plugin/strategies/RubyPluginLaunchStrategy.java @@ -10,6 +10,24 @@ import javax.script.ScriptEngineManager; import the.bytecode.club.bytecodeviewer.api.Plugin; import the.bytecode.club.bytecodeviewer.plugin.PluginLaunchStrategy; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * @author Konloch * @author Bibl (don't ban me pls) diff --git a/src/the/bytecode/club/bytecodeviewer/searching/BackgroundSearchThread.java b/src/the/bytecode/club/bytecodeviewer/searching/BackgroundSearchThread.java index 1ceb2fbe..cd3051c2 100644 --- a/src/the/bytecode/club/bytecodeviewer/searching/BackgroundSearchThread.java +++ b/src/the/bytecode/club/bytecodeviewer/searching/BackgroundSearchThread.java @@ -2,6 +2,24 @@ package the.bytecode.club.bytecodeviewer.searching; import the.bytecode.club.bytecodeviewer.BytecodeViewer; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * A simple class to make searching run in a background thread. * diff --git a/src/the/bytecode/club/bytecodeviewer/searching/FieldCallSearch.java b/src/the/bytecode/club/bytecodeviewer/searching/FieldCallSearch.java index e56f611a..46256346 100644 --- a/src/the/bytecode/club/bytecodeviewer/searching/FieldCallSearch.java +++ b/src/the/bytecode/club/bytecodeviewer/searching/FieldCallSearch.java @@ -17,6 +17,24 @@ import org.objectweb.asm.tree.MethodNode; import eu.bibl.banalysis.asm.desc.OpcodeInfo; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Field call searching * diff --git a/src/the/bytecode/club/bytecodeviewer/searching/LDCSearch.java b/src/the/bytecode/club/bytecodeviewer/searching/LDCSearch.java index fe850f59..9d0c6123 100644 --- a/src/the/bytecode/club/bytecodeviewer/searching/LDCSearch.java +++ b/src/the/bytecode/club/bytecodeviewer/searching/LDCSearch.java @@ -16,6 +16,24 @@ import org.objectweb.asm.tree.InsnList; import org.objectweb.asm.tree.LdcInsnNode; import org.objectweb.asm.tree.MethodNode; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * LDC Searching * diff --git a/src/the/bytecode/club/bytecodeviewer/searching/MethodCallSearch.java b/src/the/bytecode/club/bytecodeviewer/searching/MethodCallSearch.java index 8954ca31..ad80b671 100644 --- a/src/the/bytecode/club/bytecodeviewer/searching/MethodCallSearch.java +++ b/src/the/bytecode/club/bytecodeviewer/searching/MethodCallSearch.java @@ -17,6 +17,24 @@ import org.objectweb.asm.tree.MethodNode; import eu.bibl.banalysis.asm.desc.OpcodeInfo; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Method call searching * diff --git a/src/the/bytecode/club/bytecodeviewer/searching/RegexInsnFinder.java b/src/the/bytecode/club/bytecodeviewer/searching/RegexInsnFinder.java index 56371494..4f32b671 100644 --- a/src/the/bytecode/club/bytecodeviewer/searching/RegexInsnFinder.java +++ b/src/the/bytecode/club/bytecodeviewer/searching/RegexInsnFinder.java @@ -21,6 +21,24 @@ import org.objectweb.asm.tree.MultiANewArrayInsnNode; import org.objectweb.asm.tree.TypeInsnNode; import org.objectweb.asm.tree.VarInsnNode; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * An instruction finder that finds regex patterns in a method's instruction * list and returns an array with the found instructions. diff --git a/src/the/bytecode/club/bytecodeviewer/searching/RegexSearch.java b/src/the/bytecode/club/bytecodeviewer/searching/RegexSearch.java index 5181377d..366cab77 100644 --- a/src/the/bytecode/club/bytecodeviewer/searching/RegexSearch.java +++ b/src/the/bytecode/club/bytecodeviewer/searching/RegexSearch.java @@ -11,6 +11,24 @@ import org.objectweb.asm.Type; import org.objectweb.asm.tree.ClassNode; import org.objectweb.asm.tree.MethodNode; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Regex Searching * diff --git a/src/the/bytecode/club/bytecodeviewer/searching/SearchResultNotifier.java b/src/the/bytecode/club/bytecodeviewer/searching/SearchResultNotifier.java index ab6135a8..bec7731d 100644 --- a/src/the/bytecode/club/bytecodeviewer/searching/SearchResultNotifier.java +++ b/src/the/bytecode/club/bytecodeviewer/searching/SearchResultNotifier.java @@ -1,5 +1,23 @@ package the.bytecode.club.bytecodeviewer.searching; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Used to update the search pane that there's been a result found. * diff --git a/src/the/bytecode/club/bytecodeviewer/searching/SearchTypeDetails.java b/src/the/bytecode/club/bytecodeviewer/searching/SearchTypeDetails.java index 41c75f33..b9e95acc 100644 --- a/src/the/bytecode/club/bytecodeviewer/searching/SearchTypeDetails.java +++ b/src/the/bytecode/club/bytecodeviewer/searching/SearchTypeDetails.java @@ -4,6 +4,24 @@ import javax.swing.JPanel; import org.objectweb.asm.tree.ClassNode; +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + /** * Search type details *