fofa 0.0.2

SDKdartflutter
Platformandroidioswindowslinuxmacos

A Simple FoFa Pro API Client

First FoFa API Client With Dart

Using

Just New A Fofa Class With You Fofa APi Key And Fofa Email Then Use The function of this class, Below This Sample is Get User Info

import 'package:fofa/fofa.dart';

void main(List<String> args) async {
  Fofa fofa = new Fofa("xxx", "xxx@xx.xx");
  var result = await fofa.MyInfo();
  print(result);
}

The Function to Get Search Data By Fofa Query

import 'package:fofa/fofa.dart';

void main(List<String> args) async {
  Fofa fofa = new Fofa("xxx", "xxx@xx.xx");
  var result = await fofa.SearchAll("app=\"Apache-shifo\"");
  print(result);
}

The Function to Get Search Stats By Fofa Query

import 'package:fofa/fofa.dart';

void main(List<String> args) async {
  Fofa fofa = new Fofa("xxx", "xxx@xx.xx");
  var result = await fofa.SearchStats("app=\"Apache-shifo\"");
  print(result);
}

The Function to Get Host Detail By A Host Prama

import 'package:fofa/fofa.dart';

void main(List<String> args) async {
  Fofa fofa = new Fofa("xxx", "xxx@xx.xx");
  var result = await fofa.HostDetail("xxx.xxx.xxx.xxx");
  print(result);
}

There Have Many Prama Of Each Function Include Query,Host,Page,Size,Full,Fields,You Can See FOFA API Document To Know The Usage

PramaMean
QueryPrama of Function SearchAll And SearchStats Example:app="Apache-Shirt"require
HostPrama of Function HostDetailrequire
PagePrama of Function SearchAlloptional ,default is 1
SizePrama of Function SearchAlloptional ,default is 100
FullPrama of Function SearchAlloptional,default is false
FieldsPrama of Function SearchAlldefault is host,ip,port
DetailPrama of Function HostDetailoptional,default is false