473,378 Members | 1,346 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

dbm.error: db type could not be determined

Hello Friends, I have this python code i created with python shelve but it keeps giving me errors all of the time.

Here is the code:

import httplib2
import shelve

url = input("Enter the target's Url: ")
url_1 = url.replace("http://", "")
url_2 = url_1.replace("/", "")
s = shelve.open("anon.db", writeback=True)

for u in s["php"]:
a = "/"
url_n = url_2 + a + u
print (url_n)
http_r = httplib2.HTTPConnection(url_2)
u = a + u
http_r.request("GET", u)
reply = http_r.getresponse()

if reply.status == 200:
print ("\n URL found ----- ", url_n)
ch = input("Press c for continue: ")
continue
else:
break
s.close()

And this is the Error it gives:

Enter the target's Url: http://xxx.xxx.xx.xxx/vuln_login/
Traceback (most recent call last):
File "login_page.py", line 7, in <module>
s = shelve.open("anon.db", writeback=True)
File "Z:\Python37\lib\shelve.py", line 243, in open
return DbfilenameShelf(filename, flag, protocol, writeback)
File "Z:\Python37\lib\shelve.py", line 227, in __init__
Shelf.__init__(self, dbm.open(filename, flag), protocol, writeback)
File "C:\Python37\lib\dbm\__init__.py", line 88, in open
raise error[0]("db type could not be determined")
dbm.error: db type could not be determined

Please, if there is a much better solution to this issue, i will gladly appreciate it. Thank you
Nov 17 '22 #1
0 5014

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: toufik toufik | last post by:
I'm using the errorHandler function (http://www.zend.com/zend/spotlight/error.php) to manage error handling in my code, the problem is that in all the tests that I did the error type is always...
2
by: Iona | last post by:
Does anyone know this type of error means? Error Type: Microsoft OLE DB Provider for ODBC Drivers (0x80004005) Could not use ''(unknown)''; file already in use. /asp/PPLMain/memberpage.asp, line...
1
by: Iona | last post by:
Thanks for the reply it helped me but then I get this Error Type: Provider (0x80004005) Unspecified error /asp/PPLMain/memberpage.asp, line 10 and my line 10 is still ...
2
by: Kevin G. | last post by:
I am trying to instantiate an in-house DLL within my ASP application and I'm getting the following error: Error Type: Server object, ASP 0177 (0x800AEA5F) 800aea5f I have tried...
2
by: ramia1983 | last post by:
All i am doing is trying to write info to a access database but iget this error Error Type: ADODB.Recordset (0x800A0BCD) Either BOF or EOF is True, or the current record has been deleted....
1
by: sandeepthachan | last post by:
We have created one web site. Here if one person loggined and try to access a particular page then it goes to the error page with the message that the page cannot be dispalyed. and also it displays...
1
by: mudasserrafiq | last post by:
I am using following asp file default.asp <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <META http-equiv=Content-Type content="text/html; charset=windows-1252"> <META content="0...
2
by: colesslow | last post by:
i have these asp files to edit a record in my sql server..but it can't be done. the error is Error Type: ADODB.Recordset (0x800A0E7D) The connection cannot be used to perform this operation. It...
1
by: shivasusan | last post by:
Hi Friends! Please Help me! How i can solve this error? Please explain me, what is the error and how to solve? Error Type: ADODB.Recordset (0x800A0E7D) The connection cannot be used to...
2
by: sshade25 | last post by:
<html> <body> <?php $PGHOST = localhost; $PGDATABASE = "SantaRosaDB"; $PGUSER = "postgres"; $PGPASSWORD = "Casabubu25"; $PGPORT = 5432; $db_handle = pg_connect("dbname=$PGDATABASE...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.