CTFd juice-shop : import failed - owasp

Im currently running a ctf for a project in school. I use Juice Shop by OWASP and CTFd as framework.
Im generating my challenge by
juice-shop-ctf --config /vagrant/files/conf_ctfd.yml
with this conf
ctfFramework: CTFd
juiceShopUrl: http://192.168.56.10/
ctfKey: Mxx1
insertHints: free
insertHintUrls: free
insertHintSnippets: free
While importing in CTFd i got : Start date : Invalid Date
Can someone know how can i fix it ? I tried but nothing works....

Related

Why is the generation of my TYPO3 documentation failing without a proper error?

I have a new laptop and I try to render the Changelogs of TYPO3 locally based on the steps on https://docs.typo3.org/m/typo3/docs-how-to-document/master/en-us/RenderingDocs/Quickstart.html#render-documenation-with-docker. It continues until the end but show some non-zero exit codes at the end.
project : 0.0.0 : Makedir
makedir /ALL/Makedir
2021-02-16 10:32:50 654198, took: 173.34 seconds, toolchain: RenderDocumentation
REBUILD_NEEDED because of change, age 448186.6 of 168.0 hours, 18674.4 of 7.0 days
OK:
------------------------------------------------
FINAL STATUS is: FAILURE (exitcode 255)
because HTML builder failed
------------------------------------------------
exitcode: 0 39 ms
When I run the command in another documentation project, it renders just fine.
I found the issue with this. It seemed the docker container did not have enough memory allocated. I changed the available memory from 2 Gb to 4 Gb in Docker Desktop and this issue is solved with that.
You already solved the problem. But in case of similar errors: To get more information on a failure, you can also use this trick:
Create a directory tmp-GENERATED-temp before rendering. Usually, this is automatically created and then removedd after rendering. If you create it before rendering, you will find logfiles with more details in this directory.
See the Troubleshooting page.
I had some errors where I found the output in the console insufficient and this helped me to narrow down the problem.
In case of other problems, I would file an issue in the GitHub repo: https://github.com/t3docs/docker-render-documentation
Note: This is specific to TYPO3 docs rendering and may change in the future.

Error while importing osm.bz2 to existing openstreetmap db

When I installed Overpass API 2 years ago (http://overpass-api.de/full_installation.html), I used the following commands to import it:
wget -O france-latest.osm.bz2 "http://download.geofabrik.de/europe/france-latest.osm.bz2"
bin/init_osm3s.sh france-latest.osm.bz2 "db/" "./" --meta
Now I need to add the OSM file of Netherlands as well.
When I use the same command, I am getting the following error:
**Context error: File db///osm3s_v0.7.53_osm_base present, which indicates a running dispatcher. Delete file if no dispatcher is running**
Can someone help me to solve this please ?

Unable to register device with Fiware-Figway on Raspberry PI

I am a student currently working on a Fiware project. I am trying to collect noise data using my PI with Fiware and I found this tutorial: https://www.fiware.org/tag/raspberry-pi/.
Now I am at step 2 and I want to register my device but it doesn't seem to work. This is the response I get after I run " ./registerDevice 0001 4IN1 " :
root#raspberrypi://home/pi/Desktop/student/fiware-figway/c++# ./registerDevice 0001 4IN1
-> Config file: Debug Level <1>.
-> M2M Platform reply:
**
**
Can anybody help? I'm sure I am missing something I just don't know what.

How to integrate tesseract-ocr with tika?

I need to integrate the tesseract-ocr which converts scanned image as pdf to text.
There is tesseractOCRParser already available.
But there is no invoke method given.
When I am trying to build tika with tesseract-ocr referral path I am getting the following error
Results:
Failed tests:
testNoConfig(org.apache.tika.parser.ocr.TesseractOCRConfigTest):
Invalid default tesseractPath value expected:<[]> but was:
<[/home/serendio/tesseract-ocr/]>
Tests run: 569, Failures: 1, Errors: 0, Skipped: 7
Can anyone help me out ???
Or any other-way to resolve this problem??
I think this can help :
https://wiki.apache.org/tika/TikaOCR
I followed this guide and I was able to easily extract the content!
I simply installed Tesseract and then Tika.
Using Tika 1.9 I was easily able to :
- extract the content directly calling a local Tika server
- extract the content in a custom application ( you can use the tika-example project) with no effort .
No modification was needed. Everything working out of the box.

Could not find the ColdFusion component or interface?

I am using ColdFusion 10, Windows 7 64bit, Railo 4 and installed the Facebook CF SDK. When I try to test the installation, it is throwing this error:
Could not find the ColdFusion component or interface facebook.sdk.FacebookApp.
Ensure that the name is correct and that the component or interface exists.
The error occurred in C:/ColdFusion10/cfusion/wwwroot/facebook-cf-sdk/examples/website/index.cfm: line 34
32 : } else {
33 : // Create facebookApp instance
34 : facebookApp = new FacebookApp(appId=APP_ID, secretKey=SECRET_KEY);
35 :
36 : // See if there is a user from a cookie or session
How do I fix this error and integrate this Facebook API with ColdFusion?
It looks like an error in the instructions, instead of having the folder be called facebook-cf-sdk rename it to facebook as that's where it's looking for the cfc at.
Busches' answer should definitely solve the problem. The other alternative is to modify the imports to match your directory structure:
facebook-cf-sdk / examples / website / index.cfm
<cfscript>
import "facebook-cf-sdk.sdk.FacebookApp";
import "facebook-cf-sdk.sdk.FacebookGraphAPI";
facebook-cf-sdk / examples / website / tags.cfm
<cfimport taglib="/facebook-cf-sdk/sdk/tags" prefix="facebook" />
<cfscript>
import "facebook-cf-sdk.sdk.FacebookApp";
import "facebook-cf-sdk.sdk.FacebookGraphAPI";
The quotes are needed for component paths that contain hyphens.
Hope this helps,
- Minh