3 The online interface for the hidden detail revealer tool
6 Copyright (C) 2022 Balthasar SzczepaĆski
8 This program is free software: you can redistribute it and/or modify
9 it under the terms of the GNU Affero General Public License as
10 published by the Free Software Foundation, either version 3 of the
11 License, or (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU Affero General Public License for more details.
18 You should have received a copy of the GNU Affero General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>.
21 Requires cgilib (http://www.infodrom.org/projects/cgilib/)
30 //#include <inttypes.h>
34 #include "online-core.h"
37 int reveal (char *inpix, char *outpix);
39 int main (int argc, char *argv[])
52 make_tmp_path(in_tmp, 256, 0, "");
53 make_tmp_path(out_tmp, 256, 1, ".png");
57 r = get_file(cgi,"inpix", in_tmp, &in_path);
61 r = reveal(in_path, out_tmp);
64 r1 = send_file(out_tmp, "image/png", 0);
68 r1 = send_data(rvl, rvl_size, "image/png", 500);
83 int reveal (char *inpix, char *outpix)
91 r = execl(REVEAL_PATH, REVEAL_PATH, inpix, outpix, (char *)0);