This repository has been archived by the owner on Jun 5, 2018. It is now read-only.
Permalink
Show file tree
Hide file tree
60 changes: 52 additions & 8 deletions
60
injectIt/src/main/java/com/dextra/injectit/database/Database.java
8 changes: 8 additions & 0 deletions
8
injectIt/src/main/java/com/dextra/injectit/database/MockDatabase.java
23 changes: 16 additions & 7 deletions
23
injectIt/src/main/java/com/dextra/injectit/servlets/InjectServlet.java
12 changes: 7 additions & 5 deletions
12
injectIt/target/injectIt-1.0-SNAPSHOT/templates/template.html
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Método de execute alterado para SQLINJECTION , faltando apenas o méto…
…do de StoredProcedure
- Loading branch information
Showing
18 changed files
with
133 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+1.2 KB
(170%)
injectIt/target/classes/com/dextra/injectit/database/Database.class
Binary file not shown.
Binary file modified
BIN
+140 Bytes
(110%)
injectIt/target/classes/com/dextra/injectit/database/MockDatabase.class
Binary file not shown.
Binary file modified
BIN
+96 Bytes
(100%)
injectIt/target/classes/com/dextra/injectit/servlets/InjectServlet.class
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+73 Bytes
(100%)
.../target/injectIt-1.0-SNAPSHOT/WEB-INF/classes/com/dextra/injectit/database/Database.class
Binary file not shown.
Binary file modified
BIN
+31 Bytes
(100%)
...get/injectIt-1.0-SNAPSHOT/WEB-INF/classes/com/dextra/injectit/database/MockDatabase.class
Binary file not shown.
Binary file modified
BIN
-342 Bytes
(76%)
...ctIt/target/injectIt-1.0-SNAPSHOT/WEB-INF/classes/com/dextra/injectit/database/User.class
Binary file not shown.
Binary file modified
BIN
+1.18 KB
(150%)
...et/injectIt-1.0-SNAPSHOT/WEB-INF/classes/com/dextra/injectit/servlets/InjectServlet.class
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,18 +1,29 @@ | ||
| $.ajax({ | ||
| url : 'api/usuarios', | ||
| type : "GET", | ||
| }).done(function(resp) { | ||
| $("#usuarios").html(resp); | ||
| }); | ||
| $(document).ready(function(){ | ||
| $.ajax({ | ||
| type : 'GET', | ||
| url : 'api/usuarios', | ||
| dataType : 'json' | ||
| }).success(function(strJson) { | ||
| $.get('templates/template.html').done(function(template) { | ||
| $('#usuarios').html(doT.template(template)(strJson)); | ||
| }); | ||
| }) | ||
| }); | ||
|
|
||
| $("#pesquisar").click(function() { | ||
| $.ajax({ | ||
| url : 'api/usuarios', | ||
| type : "GET", | ||
| data : { | ||
| name : $("#search").val() | ||
| } | ||
| }).done(function(resp) { | ||
| $("#usuarios").html(resp); | ||
| }); | ||
| }); | ||
| $('#pesquisar').click(function() { | ||
|
|
||
| $.ajax({ | ||
| url : 'api/usuarios', | ||
| type : 'POST', | ||
| data : { | ||
| name : $('#search').val() | ||
| }, | ||
| dataType : 'json' | ||
| }).done(function(resp) { | ||
| console.info(resp); | ||
| $.get('templates/template.html',function (template){ | ||
| $("#usuarios").html(doT.template(template)(resp)); | ||
| }, "html"); | ||
|
|
||
| }); | ||
| }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| #Generated by Maven | ||
| #Fri Feb 06 13:33:32 BRST 2015 | ||
| #Sun Feb 08 22:05:57 BRST 2015 | ||
| version=1.0-SNAPSHOT | ||
| groupId=com.dextra.injectIt | ||
| artifactId=injectIt |
8 changes: 1 addition & 7 deletions
8
injectIt/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,5 @@ | ||
| <<<<<<< HEAD | ||
| com/dextra/injectit/servlets/InjectServlet.class | ||
| com/dextra/injectit/database/MockDatabase.class | ||
| com/dextra/injectit/database/User.class | ||
| com/dextra/injectit/booter/ContextListener.class | ||
| ======= | ||
| com/dextra/injectit/database/MockDatabase.class | ||
| >>>>>>> a83373cb29646b4fd9576b44d0ae4a4128cd7637 | ||
| com/dextra/injectit/database/Database.class | ||
| com/dextra/injectit/booter/ContextListener.class | ||
| com/dextra/injectit/servlets/InjectServlet.class | ||
| com/dextra/injectit/database/User.class |
18 changes: 5 additions & 13 deletions
18
injectIt/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,5 @@ | ||
| <<<<<<< HEAD | ||
| /home/bruno.goncalves/Documentos/desafio_buzz_woody/injectIt/src/main/java/com/dextra/injectit/database/Database.java | ||
| /home/bruno.goncalves/Documentos/desafio_buzz_woody/injectIt/src/main/java/com/dextra/injectit/booter/ContextListener.java | ||
| /home/bruno.goncalves/Documentos/desafio_buzz_woody/injectIt/src/main/java/com/dextra/injectit/database/MockDatabase.java | ||
| /home/bruno.goncalves/Documentos/desafio_buzz_woody/injectIt/src/main/java/com/dextra/injectit/database/User.java | ||
| /home/bruno.goncalves/Documentos/desafio_buzz_woody/injectIt/src/main/java/com/dextra/injectit/servlets/InjectServlet.java | ||
| ======= | ||
| /home/vinicius.moreti/projetos/desafio_buzz_woody/injectIt/src/main/java/com/dextra/injectit/database/MockDatabase.java | ||
| /home/vinicius.moreti/projetos/desafio_buzz_woody/injectIt/src/main/java/com/dextra/injectit/database/Database.java | ||
| /home/vinicius.moreti/projetos/desafio_buzz_woody/injectIt/src/main/java/com/dextra/injectit/database/User.java | ||
| /home/vinicius.moreti/projetos/desafio_buzz_woody/injectIt/src/main/java/com/dextra/injectit/booter/ContextListener.java | ||
| /home/vinicius.moreti/projetos/desafio_buzz_woody/injectIt/src/main/java/com/dextra/injectit/servlets/InjectServlet.java | ||
| >>>>>>> a83373cb29646b4fd9576b44d0ae4a4128cd7637 | ||
| /home/bruno/Documents/desafio_buzz_woody/injectIt/src/main/java/com/dextra/injectit/database/User.java | ||
| /home/bruno/Documents/desafio_buzz_woody/injectIt/src/main/java/com/dextra/injectit/database/MockDatabase.java | ||
| /home/bruno/Documents/desafio_buzz_woody/injectIt/src/main/java/com/dextra/injectit/database/Database.java | ||
| /home/bruno/Documents/desafio_buzz_woody/injectIt/src/main/java/com/dextra/injectit/booter/ContextListener.java | ||
| /home/bruno/Documents/desafio_buzz_woody/injectIt/src/main/java/com/dextra/injectit/servlets/InjectServlet.java |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| 127.0.0.1 - - [08/Feb/2015:22:34:56 -0200] "GET / HTTP/1.1" 404 - http-bio-8080-exec-1 0 | ||
| 127.0.0.1 - - [08/Feb/2015:22:35:05 -0200] "GET /injectIt HTTP/1.1" 302 - http-bio-8080-exec-2 0 | ||
| 127.0.0.1 - - [08/Feb/2015:22:35:05 -0200] "GET /injectIt/ HTTP/1.1" 200 582 http-bio-8080-exec-3 215 | ||
| 127.0.0.1 - - [08/Feb/2015:22:35:05 -0200] "GET /injectIt/js/index.js HTTP/1.1" 200 597 http-bio-8080-exec-4 7 | ||
| 127.0.0.1 - - [08/Feb/2015:22:35:05 -0200] "GET /injectIt/js/doT.js HTTP/1.1" 200 5163 http-bio-8080-exec-5 31 | ||
| 127.0.0.1 - - [08/Feb/2015:22:35:06 -0200] "GET /injectIt/api/usuarios HTTP/1.1" 405 1065 http-bio-8080-exec-7 4 | ||
| 127.0.0.1 - - [08/Feb/2015:22:35:10 -0200] "POST /injectIt/api/usuarios HTTP/1.1" 200 12 http-bio-8080-exec-8 58 | ||
| 127.0.0.1 - - [08/Feb/2015:22:35:10 -0200] "GET /injectIt/templates/template.html HTTP/1.1" 200 296 http-bio-8080-exec-9 27 | ||
| 127.0.0.1 - - [08/Feb/2015:22:35:14 -0200] "POST /injectIt/api/usuarios HTTP/1.1" 200 84 http-bio-8080-exec-10 10 | ||
| 127.0.0.1 - - [08/Feb/2015:22:54:04 -0200] "GET /help/topic/com.vmware.ICbase/images/vmware_favicon.ico HTTP/1.1" 404 - http-bio-8080-exec-2 0 |