Skip to content

Commit

Permalink
update U2C condition
Browse files Browse the repository at this point in the history
update U2C condition
  • Loading branch information
bit4woo committed Jun 29, 2018
1 parent 45e04b5 commit 8ba91db
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="output" path="bin"/>
</classpath>
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/bin/
17 changes: 17 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>knife</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
9 changes: 7 additions & 2 deletions src/burp/BurpExtender.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

public class BurpExtender extends Thread implements IBurpExtender, IExtensionStateListener,IContextMenuFactory,IHttpListener
{
public String ExtenderName = "knife v0.1";
public String ExtenderName = "knife v0.2";
public String github = "https://github.com/bit4woo/knife";
public IBurpCollaboratorClientContext ccc;
public IExtensionHelpers helpers;
Expand Down Expand Up @@ -101,13 +101,18 @@ public List<JMenuItem> createMenuItems(IContextMenuInvocation invocation)
menuItem3.addActionListener(new disMiss(invocation,dismissUrls));
list.add(menuItem3);
*/
/*
byte context = invocation.getInvocationContext();
//只有当选中的内容是响应包的时候才显示U2C
if (context == invocation.CONTEXT_MESSAGE_EDITOR_RESPONSE || context == invocation.CONTEXT_MESSAGE_VIEWER_RESPONSE) {
JMenuItem menuItem4 = new JMenuItem("^-^ U2C");
menuItem4.addActionListener(new U2C(invocation));
list.add(menuItem4);
}
}*/

JMenuItem menuItem4 = new JMenuItem("^-^ U2C(unicode to chinese)");
menuItem4.addActionListener(new U2C(invocation));
list.add(menuItem4);

}
return list;
Expand Down

0 comments on commit 8ba91db

Please sign in to comment.