Got an idea for enhancing SpiderBasic? New command(s) you'd like to see?
Paul
Posts: 197 Joined: Wed Feb 26, 2014 6:46 pm
Location: Canada
Contact:
Post
by Paul » Thu Oct 24, 2019 1:24 pm
Ability to upload a file natively from SpiderBasic.
Basically to be able to do something as simple as this...
Code: Select all
<form action='https://127.0.0.1/cgi-bin/mydata.cgi' method='post' enctype='multipart/form-data'>
Subject<br>
<input type='text' name='subject'><br>
<input type='hidden' name='pass' value='test data'><br>
<input type='file' name='file1' id='file1'><br>
<input type='file' name='file2' id='file2'><br>
<br>
<input type='reset' value='Clear' name='clear'>
<input type='submit' value='Send' name='senddata'>
</form>
falsam
Posts: 280 Joined: Mon May 05, 2014 9:49 pm
Location: France
Contact:
Post
by falsam » Wed Jun 10, 2020 2:24 pm
➽ Windows 11 - JDK 1.8 - SB 2.40 - Android 13
➽ http://falsam.com
Sorry for my poor english
Paul
Posts: 197 Joined: Wed Feb 26, 2014 6:46 pm
Location: Canada
Contact:
Post
by Paul » Wed Jun 10, 2020 3:13 pm
Although this "UploadGadget" you mention has its purpose, it does not do the same as the code snippet above so it cannot be used as a workaround.
Peter
Posts: 1093 Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:
Post
by Peter » Thu Jun 11, 2020 2:33 pm
@Paul: What about
this one ?
Paul
Posts: 197 Joined: Wed Feb 26, 2014 6:46 pm
Location: Canada
Contact:
Post
by Paul » Thu Jun 11, 2020 6:43 pm
Thanks Peter,
It looks like I can use formData.append in that code to add the extra text fields to go with the files so it may work for what I need.
I'll let you know my progress.
Peter
Posts: 1093 Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:
Post
by Peter » Thu Jun 11, 2020 8:25 pm
Paul wrote:
Thanks Peter,
It looks like I can use formData.append in that code to add the extra text fields to go with the files so it may work for what I need.
I'll let you know my progress.
Currently I am working on an upload dialog.
Prototype:
Peter
Posts: 1093 Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:
Post
by Peter » Fri Jun 12, 2020 8:13 am
Dirk Geppert
Posts: 285 Joined: Fri Sep 22, 2017 7:02 am
Post
by Dirk Geppert » Fri Jun 12, 2020 11:59 am
Looks good.
During testing I noticed, that if you have already started once the upload, every new added file is marked as successfully uploaded then.