不能忘記UsedRange了!

2021-04-28 14:16:53 字數 659 閱讀 4424

xvalue = -1

'這裡讀取sheet1裡面的輸入值

xvalue = val(sheet1.cells("19", "a"))

if trim(sheet1.cells("19", "a")) = "" then

msgbox "x 為空 "

exit sub

end if

xline = -1

for i = 6 to sheet2.usedrange.rows.count

if val(sheet2.cells(i, "c")) = xvalue then

xline = i

exit for

end if

next i

if xline = -1 then

msgbox "公尺找到"

exit sub

end if

sheet1.cells(23, 1) = sheet2.cells(xline, "j")

sheet1.cells(23, 2) = sheet2.cells(xline, "k")

sheet1.cells(23, 3) = sheet2.cells(xline, "m")

sheet1.cells(23, 4) = sheet2.cells(xline, "n")

忘記密碼了

ctf很狗。我所看到的解體思路,只是乙個答案。搞不懂大牛的操作。題目 根據原始碼得到兩個資訊 乙個管理員郵箱乙個vim。傳送到管理員的是看不到,但是別的可以。然後聯想到剛才的vim 在vim不正常退出的情況下就會產生乙個swp檔案。那麼這個會不會是這樣呢?作為php菜雞看到php還是挺親切的。得出正...

CTF 忘記密碼了

型別 web 攻擊 vim快取檔案 一句話總結 vim快取檔案.submit.php.swp 檢視原始碼發現可疑 判斷可能跟vim快取檔案有關,猜測快取檔案 step1.php.swp step2.php.swp step3.php.swp index.php.swp submit.php.swp,...

Mysql忘記Root密碼了

1 停止服務 net stop mysql 2 忽略密碼重啟 2.1用命令直接忽略 我試了,沒有操作成功 mysqld skip grant tables 2.2修改my.ini配置檔案 忽略遠端登入慢的配置不用管 mysqld skip name resolve skip grant tables...