GithubHelp home page GithubHelp logo

piannelli / dwipe-2.1.0-disknukem Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 1.0 851 KB

Version 2.1.0 of dwipe from DBAN with improved functionalities

License: GNU General Public License v2.0

C 57.40% Shell 41.46% JavaScript 1.14%

dwipe-2.1.0-disknukem's Introduction

dban-2.1.0-disknukem

This is an enhanced version of DBAN's dwipe suite that allows users to destroy data in any physical mass storage attached. Since development of DBAN/dwipe has been stopped for a while, this version will try to resolve bugs and add some additional features.

Development

The development is active, so the possibility you download non-working code is higher than normal. To start development, check out the source code

Check out source code

git clone git://github.com/piannelli/dban-2.1.0-disknukem.git

Libraries needed

To build correctly you need to have installed libncurses, libpthread, libmicrohttpd 0.9.9, libxml2, libjson and libcurl.

What will be new?

This version of dwipe will add functionality to expose data through the web in XML and JSON. It will also have features like fast wipe (although unsecure) and, alltogether with Disk Nukem (see other project), it will provide a suite to automate data destruction, for instance, in a web farm.

New command line options :

--logfile # specify the path where to log

--web # enable the webserver

--web-port # identify the port where to listen

--web-listen # identify the address where to listen

--web-user # the user for HTTP Basic Auth

--web-pass # the pass for the HTTP Basic Auth user

--notify-start # the url to retrieve when the actual start begins

--notify-success # the url to retrieve when the nuke finish successfully

--notify-fail # the url to retrieve when the nuke fails

dwipe-2.1.0-disknukem's People

Contributors

piannelli avatar

Stargazers

Matthew Levandowski avatar  avatar Casey Havenor avatar  avatar Imre Toth avatar

Watchers

 avatar James Cloos avatar

Forkers

osbornematt1

dwipe-2.1.0-disknukem's Issues

issues in "configure.in" (and generated "configure") files

System:

  • Debian 10
  • DWipe version: 2.1.0 (made from sources)

Issue

NOTE: From security reasons, the patches on disk were trunchated

While configuring, I got following errors (extracted only error messages):

missing: Unknown --is-lightweight' option Try missing --help' for more information
configure: WARNING: 'missing' script is too old or missing

Please fix this. Thanks

Issues in Makefile.am, Makefile.in and Makefile

System:

  • Debian 10
  • DWipe version: 2.1.0 (made from sources)

Issue

NOTE: From security reasons, the patches on disk were trunchated

While configuring, I got following errors (extracted only error messages):

device.c: In function 'dwipe_device_scan':
device.c:139:28: warning: format '%lli' expects argument of type 'long long int *', but argument 5 has type 'loff_t *' {aka 'long int *'} [-Wformat=]
139 | if( sscanf( b, "%i %i %lli %s", &dmajor, &dminor, &dblocks, &dname[ strlen( dprefix ) ] ) == 4 )
| ~~~^ ~~~~~~~~
| | |
| long long int * loff_t * {aka long int *}
| %li

=======================================================

gui.c: In function 'dwipe_gui_title':
gui.c:142:6: warning: variable 'wy' set but not used [-Wunused-but-set-variable]
142 | int wy;
| ^~

=======================================================

httpd.c: In function 'handle_request':
httpd.c:117:10: warning: implicit declaration of function 'dwipe_get_info_json'; did you mean 'dwipe_get_info_xml'? [-Wimplicit-function-declaration]
117 | page = dwipe_get_info_json();
| ^~~~~~~~~~~~~~~~~~~
| dwipe_get_info_xml
httpd.c:117:8: warning: assignment to 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
117 | page = dwipe_get_info_json();
| ^
httpd.c:125:11: warning: implicit declaration of function 'dwipe_get_status_json'; did you mean 'dwipe_get_status_xml'? [-Wimplicit-function-declaration]
125 | page = dwipe_get_status_json(c1);
| ^~~~~~~~~~~~~~~~~~~~~
| dwipe_get_status_xml
httpd.c:125:9: warning: assignment to 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
125 | page = dwipe_get_status_json(c1);
| ^
httpd.c:133:9: warning: assignment to 'const char ' from 'int' makes pointer from integer without a cast [-Wint-conversion]
133 | page = dwipe_get_status_json(c2);
| ^
httpd.c: In function 'dwipe_start_web_server':
httpd.c:154:36: warning: passing argument 5 of 'MHD_start_daemon' from incompatible pointer type [-Wincompatible-pointer-types]
154 | &handle_request, NULL, MHD_OPTION_END);
| ^~~~~~~~~~~~~~~
| |
| int (
)(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, size_t , void **) {aka int ()(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, long unsigned int , void **)}
In file included from httpd.h:44,
from httpd.c:27:
/usr/include/microhttpd.h:2443:45: note: expected 'MHD_AccessHandlerCallback' {aka 'enum MHD_Result (
)(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, long unsigned int , void **)'} but argument is of type 'int ()(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, size_t , void **)' {aka 'int ()(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, long unsigned int *, void **)'}
2443 | MHD_AccessHandlerCallback dh, void *dh_cls,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~

=======================================================

xml.c: In function 'dwipe_get_info_xml':
xml.c:54:13: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
54 | int rc, buffer_size;
| ^~
xml.c: In function 'dwipe_get_status_xml':
xml.c:160:92: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'loff_t' {aka 'long int'} [-Wformat=]
160 | rc = xmlTextWriterWriteFormatElement( writer, BAD_CAST "size", "%llu" , context[i].device_size );
| ~~~^ ~~~~~~~~~~~~~~~~~~~~~~
| | |
| | loff_t {aka long int}
| long long unsigned int
| %lu
xml.c:102:13: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
102 | int rc, buffer_size;
| ^~

=======================================================

/usr/bin/ld: cannot find -ljson
/usr/bin/ld: gui.o:(.bss+0x0): multiple definition of dwipe_loadavg'; dwipe.o:(.bss+0x98): first defined here /usr/bin/ld: gui.o:(.bss+0x8): multiple definition of dwipe_throughput'; dwipe.o:(.bss+0xa0): first defined here
/usr/bin/ld: gui.o:(.bss+0x20): multiple definition of dwipe_errors'; dwipe.o:(.bss+0xb8): first defined here /usr/bin/ld: gui.o:(.bss+0x18): multiple definition of dwipe_runtime'; dwipe.o:(.bss+0xb0): first defined here
/usr/bin/ld: gui.o:(.bss+0x10): multiple definition of dwipe_remaining'; dwipe.o:(.bss+0xa8): first defined here /usr/bin/ld: httpd.o:(.bss+0x20): multiple definition of dwipe_options'; dwipe.o:(.bss+0x20): first defined here
/usr/bin/ld: httpd.o:(.bss+0x8): multiple definition of c1'; dwipe.o:(.bss+0x8): first defined here /usr/bin/ld: httpd.o:(.bss+0x0): multiple definition of c2'; dwipe.o:(.bss+0x0): first defined here
/usr/bin/ld: httpd.o:(.bss+0x90): multiple definition of dwipe_selected'; dwipe.o:(.bss+0x90): first defined here /usr/bin/ld: httpd.o:(.bss+0x94): multiple definition of dwipe_enumerated'; dwipe.o:(.bss+0x94): first defined here
/usr/bin/ld: httpd.o:(.bss+0x98): multiple definition of dwipe_loadavg'; dwipe.o:(.bss+0x98): first defined here /usr/bin/ld: httpd.o:(.bss+0xa0): multiple definition of dwipe_throughput'; dwipe.o:(.bss+0xa0): first defined here
/usr/bin/ld: httpd.o:(.bss+0xa8): multiple definition of dwipe_remaining'; dwipe.o:(.bss+0xa8): first defined here /usr/bin/ld: httpd.o:(.bss+0xb0): multiple definition of dwipe_runtime'; dwipe.o:(.bss+0xb0): first defined here
/usr/bin/ld: httpd.o:(.bss+0xb8): multiple definition of dwipe_errors'; dwipe.o:(.bss+0xb8): first defined here /usr/bin/ld: json.o:(.bss+0x20): multiple definition of dwipe_runtime'; dwipe.o:(.bss+0xb0): first defined here
/usr/bin/ld: json.o:(.bss+0x18): multiple definition of dwipe_remaining'; dwipe.o:(.bss+0xa8): first defined here /usr/bin/ld: json.o:(.bss+0x8): multiple definition of dwipe_loadavg'; dwipe.o:(.bss+0x98): first defined here
/usr/bin/ld: json.o:(.bss+0x10): multiple definition of dwipe_throughput'; dwipe.o:(.bss+0xa0): first defined here /usr/bin/ld: json.o:(.bss+0x28): multiple definition of dwipe_errors'; dwipe.o:(.bss+0xb8): first defined here
/usr/bin/ld: json.o:(.bss+0x4): multiple definition of dwipe_enumerated'; dwipe.o:(.bss+0x94): first defined here /usr/bin/ld: json.o:(.bss+0x0): multiple definition of dwipe_selected'; dwipe.o:(.bss+0x90): first defined here
/usr/bin/ld: logging.o:(.bss+0x0): multiple definition of dwipe_options'; dwipe.o:(.bss+0x20): first defined here /usr/bin/ld: notify.o:(.bss+0x0): multiple definition of dwipe_options'; dwipe.o:(.bss+0x20): first defined here
/usr/bin/ld: options.o:(.bss+0x0): multiple definition of dwipe_options'; dwipe.o:(.bss+0x20): first defined here /usr/bin/ld: xml.o:(.bss+0x20): multiple definition of dwipe_runtime'; dwipe.o:(.bss+0xb0): first defined here
/usr/bin/ld: xml.o:(.bss+0x18): multiple definition of dwipe_remaining'; dwipe.o:(.bss+0xa8): first defined here /usr/bin/ld: xml.o:(.bss+0x8): multiple definition of dwipe_loadavg'; dwipe.o:(.bss+0x98): first defined here
/usr/bin/ld: xml.o:(.bss+0x10): multiple definition of dwipe_throughput'; dwipe.o:(.bss+0xa0): first defined here /usr/bin/ld: xml.o:(.bss+0x28): multiple definition of dwipe_errors'; dwipe.o:(.bss+0xb8): first defined here
/usr/bin/ld: xml.o:(.bss+0x4): multiple definition of dwipe_enumerated'; dwipe.o:(.bss+0x94): first defined here /usr/bin/ld: xml.o:(.bss+0x0): multiple definition of dwipe_selected'; dwipe.o:(.bss+0x90): first defined here
collect2: error: ld returned 1 exit status

Please fix it asap. Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.