/** * Set the text of the text area. * @param text The text to set. */ @Override public void setText(byte[] text) { burpEditor.setText(text); }
public void setText(byte[] text) { this.textEditor.setText(text); }
/** * Is called every time new Code is available. * @param evt {@link de.rub.nds.burp.utilities.listeners.AbstractCodeEvent} The new source code. */ @Override public void setCode(AbstractCodeEvent evt) { burpEditor.setText(evt.getCode().getBytes()); }
public void clearData(){ this.requestResponse = null; paramsTableModel.getDataVector().removeAllElements(); headersTableModel.getDataVector().removeAllElements(); textEditor.setText(new byte[]{}); }
@Override public void setMessage(byte[] content, boolean isRequest) { String UnicodeResp = ""; if(content != null) { String resp= new String(content); while (needtoconvert(resp)) { resp = Unicode.unicodeDecode(resp); } UnicodeResp = resp; } txtInput.setText(UnicodeResp.getBytes()); }
@Override public void setMessage(byte[] content, boolean isRequest) { String UnicodeResp = ""; if(content != null) { String resp= new String(content); while (needtoconvert(resp)) { resp = Unicode.unicodeDecode(resp); } UnicodeResp = resp; } txtInput.setText(UnicodeResp.getBytes()); }
@Override public void setMessage(byte[] content, boolean isRequest) { if (content == null) { editor.setText(null); currentMessage = null; } else { int bodyOffset = callbacks.getHelpers().analyzeResponse(content).getBodyOffset(); byte[] bodyContent = Arrays.copyOfRange(content, bodyOffset, content.length); currentMessage = content; editor.setText(beautifyJS(bodyContent)); } editor.setEditable(false); }
@Override public void setMessage(byte[] content, boolean isRequest) { if (content == null) { // clear our display txtInput.setText(null); } else { currentMessage = content; //String req = new String(content); if("".equals(hunterConfig.getDomain())) { content = "XSS Hunter needs a valid domain and access key set on configuration tab".getBytes(); } else { hunterReq = new HunterRequest(hunterConfig.getDomain(), hunterConfig.getKey()); try { content = hunterReq.createReq(content, probes, helpers, callbacks, false); } catch (IOException ex) { callbacks.printError("Failed to create XSS Hunter probe:\n"+ex.toString()); } } txtInput.setText(content); } }
private void loadData(byte[] data, List<IParameter> params, List<String> headers){ textEditor.setText(data);