Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…to main
  • Loading branch information
bakueikozo committed Sep 29, 2021
2 parents ffbfd56 + e124c76 commit 5337791
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ telnetパスワード以外のことについてのDMでの質問は、他の方

## 使用法

https://github.com/bakueikozo/atomcam_tools/releases
https://github.com/bakueikozo/atomcam_tools/releases/tag/v1.0rc

からatomcam_tools.zipをダウンロードし、適当なツールで解凍します。
<img src="https://github.com/bakueikozo/atomcam_tools/blob/main/images/extract.png">

解凍されて出てきたすべてのファイルを、ATOMCam2で使用可能なmicroSDカードのルートフォルダに保存します
保存したmicroSDカードをATOMCam2に入れて電源を入れます

Expand Down
2 changes: 1 addition & 1 deletion scripts/honeylab.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ ELEMENT=`echo -e $QUERY_STRING | tr '&' '\t' | cut -f $i`
#echo $ELEMENT

KEY=`echo $ELEMENT | cut -d "=" -f 1`
VALUE=`echo $ELEMENT | cut -d "=" -f 2`
VALUE=`echo $ELEMENT | cut -d "=" -f 2 | sed -e 's|%2f|/|ig'`
# echo $KEY,$VALUE


Expand Down
4 changes: 2 additions & 2 deletions scripts/honeylab_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ do
ifconfig wlan0 | awk '/inet / {print $2}' | awk -F: '{print $2}' > /tmp/ipaddr
if [ -f /tmp/ftptest ]; then
killall -9 lftp
FTPCLIENT=$(awk -F "=" '/FTPCLIENT/ {print $2}' $HACK_INI)
FTPADDR=$(awk -F "=" '/FTPADDR/ {print $2}' $HACK_INI)
FTPUSER=$(awk -F "=" '/FTPUSER/ {print $2}' $HACK_INI)
Expand All @@ -155,7 +155,7 @@ do
/tmp/busybox rm /tmp/ftperr.log
/tmp/busybox rm /tmp/ftptest.log
dd if=/dev/urandom of=/tmp/test.bin bs=1024 count=1
TZ=JST-9 LD_LIBRARY_PATH=/tmp/newroot/lib:/tmp/newroot/usr/lib:/lib:/usr/lib /tmp/newroot/lib/ld.so.1 /tmp/newroot/usr/bin/lftp -e "set xfer:log-file /tmp/ftp.log; set net:timeout 60; set net:max-retries 3 ;set net:reconnect-interval-base 10; open -u $FTPUSER,$FTPPASS $FTPADDR ; mkdir -p ftptest ; put -O ftptest /tmp/test.bin -o test.bin; rm ftptest/test.bin ; rmdir ftptest; quit" 2>/tmp/ftperr.log
TZ=JST-9 LD_LIBRARY_PATH=/tmp/newroot/lib:/tmp/newroot/usr/lib:/lib:/usr/lib /tmp/newroot/lib/ld.so.1 /tmp/newroot/usr/bin/lftp -e "set xfer:log-file /tmp/ftp.log; set net:timeout 60; set net:max-retries 3 ;set net:reconnect-interval-base 10; open -u $FTPUSER,$FTPPASS $FTPADDR ; mkdir -p $FTPFOLDER/ftptest ; put -O $FTPFOLDER/ftptest /tmp/test.bin -o test.bin; rm $FTPFOLDER/ftptest/test.bin ; rmdir $FTPFOLDER/ftptest; quit" 2>/tmp/ftperr.log
cat /tmp/ftperr.log > /tmp/ftptest.log
cat /tmp/ftp.log >> /tmp/ftptest.log
busybox rm -rf /tmp/ftp.log
Expand Down

0 comments on commit 5337791

Please sign in to comment.